Reputation: 2588
I am using Angular ngRouter. I need to change the url path along with search parameters. I know about $location.path and $location.search, but is there a function that sets them both?
Upvotes: 0
Views: 950
Reputation: 70055
Use $location.url() to change path, search, and hash all at once.
$location.url()
Upvotes: 1