Eduardo Coso
Posts: 0
Joined: Fri May 29, 2015 2:24 pm

how to use NavigateTo with $routeParams ( Ionic/AngularJS)

how to use NavigateTo with $routeParams ( Ionic/AngularJS)

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

how to use NavigateTo with $routeParams ( Ionic/AngularJS)

Hello Eduardo,

We are very sorry for the radio silence here.
There are the names in the routing, they correspond to the templates in which you may substitute the value from the dictionary in routeParams and receive the url.
You can show it like this
pre'route_name': '/param1/param2/:specialA/:specialB/param3
Apperyio.navigateTo( 'route_name', { specialA: 1000, specialB: 555 } );/pre
It will cause the link
pre#/param1/param2/1000/555/param3/pre
This url is already treated with a standard routing of angular and the standard screen for the opening will be selected.
The point is that you can remake the format of the url at any time (in some sense, this is also the logic of the app), but no you don't need to remember all the places in the application where you've already put the links - you refer to it by name, which is far more stable. I.e. changing the generated url in one place, it changes everywhere.

Return to “Issues”