在Angular2中传递多个路由参数

是否可以通过多个路由参数,例如如下所示,需要将id1和id2传递给组件B
@RouteConfig([
    {path: '/component/:id :id2',name: 'MyCompB',component:MyCompB }
])
export class MyCompA {
  onClick(){
    this._router.navigate( ['MyCompB',{id: "someId",id2: "another ID"}]);
     }
}
OK实现了一个错误..它必须是/:id /:id2

反正没有在任何教程或其他StackOverflow问题中找到这个.

@RouteConfig([{path: '/component/:id/:id2',component:MyCompB}])
export class MyCompA {
    onClick(){
        this._router.navigate( ['MyCompB',id2: "another ID"}]);
    }
}

相关文章

ANGULAR.JS:NG-SELECTANDNG-OPTIONSPS:其实看英文文档比看中...
AngularJS中使用Chart.js制折线图与饼图实例  Chart.js 是...
IE浏览器兼容性后续前言 继续尝试解决IE浏览器兼容性问题,...
Angular实现下拉菜单多选写这篇文章时,引用文章地址如下:h...
在AngularJS应用中集成科大讯飞语音输入功能前言 根据项目...
Angular数据更新不及时问题探讨前言 在修复控制角标正确变...