我想在我的config.route.js文件中傳遞多個參數。通過一個參數很好,但我無法通過兩個。第二個是可選的。有任何想法嗎?這是我到目前爲止...如何使用angular在config.route.js中傳遞多個參數?
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'
}
}
}