When interfacing with an external service, Iām receiving query parameters in the following format:
url/?error=someError&error_description=someErrorDescription
In my app.js file, I have attempted to handle this using the routeProvider as shown below:
$routeProvider.when('/:error', {
templateUrl: 'templates/user.html',
controller: 'MainCtrl as route'
});
However, I require multiple query parameters on the same level instead of just one. Currently, I am achieving this by splitting the string for the 'error' parameter, but I feel that this approach is not optimal. Is there a better Angular solution for handling several query strings?