Angular ui-router setup for this use case? -
I want to redo a line in the line chart without reloading it (neither the template nor Neither the controller) can be done with country / 5 country / 7 this UI-router while navigating completely? state template with directive - country.html < pre> Controller For today, there is no official support what you are looking for UI Router Speaking is considered as 'dynamic parameter' However, if you check and help us by testing feedback, then it will be merged to master soon. Set your route / state as follows: Then, in your controller, you can see the changes in
country /: id
& lt; Linechart data = "Scope.Database" & gt;
onStateParamsChange = & gt; Fetch data, set scope Some data
$ StateProvider.state ("country", {url: "/ country / {id: int}", parameter : {Id: {dynamic: true}} / * other state configuration *);
id :
$ stateParam $ ("Id", function (value) is the updated value of $ // val $$ Parsam.id // This is where you can make your argument to get new data and update $ scope) ;
Comments
Post a Comment