I am writing an application in which the address (location) depends on 4 parameters: section, sorting 1, sorting 2, page.
I want the route to look like this - http://mysite.com/rozdel/sort1/sort2/page3
For sections this is not a problem, you can simply add to href info (say, there is <a ng-href="/category">Раздел 1</a> ). But then, when the user chooses a sort, or a page, add this to their href , so that their href based on the href section, for example <a ng-href="/category/sort1">Раздел 1</a>
How to implement this on AngularJS? write a URL to replace the URL using $location ?