I am struggling to create a state provider that can handle multiple parameters. Is it possible to capture them as an object or array, or do I have to capture them as a string and then separate them?
For example, this is my current provider:
.state('app.confirmPayment', {
url: '/comfirmPayment/:params',
templateUrl: '/Views/ConfirmPayment.html'
})
And here is the controller:
app.controller('ConfirmController', ['$scope', '$state',
function ($scope, $state) {
var self = this;
console.log('$state confirm payment');
console.log($state);
console.log('$state confirm payment');
}
]);
I would like to capture all the params separately, such as:
/comfirmPayment/:age=15&name=erez..... // there could be more that are unknown
There may be additional params that I am unaware of.
Thank you for your help, I hope this explanation is clear.