YULIN Web前端 无标签 2021年06月08日 10:13:00 2973 angluar12 路由状态监听 ``` activeRouteName = ''; constructor(private router: Router) { (this.router.events.pipe(filter(event => event instanceof NavigationEnd)) as Observable).subscribe(router => { // do something console.log('路由结束==>', router) this.activeRouteName = router.url; }) } ``` 分享到QQ好友 Last arcgis 坐标转换 Next 关闭angular项目提示Google’s Privacy