Good day, I need your help. There is a get request and correspondingly in url: http: // domain / dashboard? Region = USA & sellers = 10 . I use routeProvider. How to prescribe .when ('/ dashboard', {...}) so that the routing can understand that I am on this page?

  • in principle, you have already registered. - Grundy

2 answers 2

Yes, actually you have already done half the work, as a result it should look like this:

$routeProvider.when("/dashboard", { templateUrl: "путь к странице" }); 
     $routeProvider.when('/dashboard?region&sellers', { templateUrl: 'template.html' }); 

    And inside the controller, you can get the parameters from the cheers using $ routeParams