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 ?

  • Maybe it makes sense to use something like solotable, instantly sorts a table of 10,000 rows. Those. we get from the section the entire list on the page and then sort it as you like. - fedornabilkin
  • @fedornabilkin A if you need to download about 100MB ??? - Roman Maydansky
  • 100mb for any speed is expensive. If there is really so much information in the section, either divide it into subsections, or display a minimum of information (name, price, size) and send it to the item. - fedornabilkin 2:51 pm

0