Angular2入门系列(五)————路由参数设置RoutingConfiguration:{path:'',component:CarProFile,children:[{path:'add',component:CarAdd,}]}路由跳转:this.router.navigate(['add',{id:this.userid,foo:'foo'}],{relativeTo:this.route});然后浏览服务器的url是这样的,参数一目了然。..![上传图片...]处理方法skipLocationChangethis.router.navigate(['add',{id:this.userid,foo:'foo'}],{relativeTo:this.route,skipLocationChange:true});注意:使用该方法后,页面的返回按钮将失效。
