I am facing an issue with searching on my page. Currently, this is the code I have:
$stateProvider
.state('aaa', {
url: '/aaa',
templateUrl: 'client/parties/views/aaa.ng.html',
controller: 'Aaa'
})
$urlRouterProvider.otherwise("/default");
Now, I want to implement search functionality on my page but the parameters must work with the URL. How can I use params when $urlRouterProvider.otherwise is in place? As of now, anything after /aaa/ in the URL redirects to /default.
An important aspect to consider is that I have more than 20 parameters, and when certain ones are not selected, I do not want them to be passed via the URL. This presents a challenge as using something like url: '/details/:param1:param2:param3:param4' may not be feasible.
Can anyone provide assistance?