How do I extract query parameters using ui-router for AngularJS?
In AngularJS' own $location service I did
($location.search()).uid
to extract the parameter uid from a URL. What is the corresponding code for ui-router?
How do I extract query parameters using ui-router for AngularJS? In AngularJS' own $location service I did
to extract the parameter uid from a URL. What is the corresponding code for ui-router? |
|||||||||
|
Unless you're binding to the query parameters (see the documentation), you don't access them directly through | |||||
|
See the query parameters section of the URL routing documentation.
For this example, if the url is | |||
|