4
在Angular2中传递多个路径参数
是否可以传递多个路由参数,例如下面需要传递id1并传递id2给component B @RouteConfig([ {path: '/component/:id :id2',name: 'MyCompB', component:MyCompB } ]) export class MyCompA { onClick(){ this._router.navigate( ['MyCompB', {id: "someId", id2: "another ID"}]); } }