ui-router does not distinguish between different types of parameters in a URL, for example, in the $ location service.
In your controllers, you can use the $ stateParams service to access all of the various types of parameters in your URL.
The following is an example from the wi-router wiki:
// Then you navigated your browser to: '/users/123/details/default/0?from=there&to=here' // Your $stateParams object would be { id:'123', type:'default', repeat:'0', from:'there', to:'here' }
So, in your case, to search for the uid parameter just use:
$scope.uid = $stateParams.uid
SStanley Dec 10 '15 at 1:13 2015-12-10 01:13
source share