Angular2 +默认情况下将SkipLocationChange设置为true

时间:2017-04-20 23:13:05

标签: angular angular2-routing

想要将我的Angular2应用程序的SkipLocationChange设置为true。 怎么样?例如,某个应用可能会多次调用router.navigate

this.router.navigate(['/path', arg], {skipLocationChange:true})

也许有50次调用router.navigate,这需要将此选项skipLocationChange:true焊接50次......

0 个答案:

没有答案