angular6项目中遇到的难点---判断路由变化

 引入模块filter

this.router.events.pipe(filter(x=>x instanceof NavgationEnd)).subscribe((x:NavgationEnd)=>{

    

})

posted @ 2018-11-27 14:07  我有饼干吃  阅读(1419)  评论(2)    收藏  举报