I am facing an issue while trying to pass multiple parameters in my config.route.js file. I have successfully passed one parameter, but encountering difficulties in passing two parameters. The second parameter is optional. Can anyone provide insight on how to achieve this? Below is the current state of my code...
function getRoutes() {
return [{
{
url: '/main/:containerId',
config: {
title: 'main',
templateUrl: 'app/main/edit.html',
params: 'containerId',
}
}, {
url: '/main/:containerId/:planId',
config: {
title: 'main',
templateUrl: 'app/main/edit.html',
params: {
containerId: 'containerId',
planId:'planId'
}
}
}