We have a search page, and we have thousands of search attributes that can be defined using the admin panel. A typical search results page has this URL:
http:
When we want to implement this page as a SPA with AngularJS using angular-ui-router , I could not understand how we can determine the route configuration and how we can read all the search parameters from querystring. Because ui-router forces you to define each queryparam parameter in the route configuration for use in $stateParams .
$stateProvider.state('search', { url: '/search?a1&a2&a3&a4&a5' // what about a1314? controller: function ($stateParams) { console.log($stateParams.a1314); } });
Do you know a workaround?
source share