Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
它似乎router.changes.subscribe已被弃用。
router.changes.subscribe
可以用什么来代替它?
我想对每个路由器更改做一些事情,所以请帮助我作为路由器可以做些什么。
我有这个解决方案。
router.events.subscribe(event:Event => { if(event instanceof NavigationStart) { } // NavigationEnd // NavigationCancel // NavigationError // RoutesRecognized
}