How to configure the route in AngularJS when the url contains query parameters. I have to write a config for handling route with the url /states?statename=kar
. I wrote the config as /states?statename=:name
but its not working. Can you please help me where I am going wrong?
If it was /states/statename/kar
then I would have written the route with /states/statename:name
.