📅  最后修改于: 2022-03-11 15:02:24.655000             🧑  作者: Mango
class MyClass {
constructor(private router: Router) {
router.events.subscribe((val) => {
// see also
console.log(val instanceof NavigationEnd)
});
}
}