📜  角度获取路由器路径 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:42.606000             🧑  作者: Mango

代码示例1
import {filter} from 'rxjs/operators';

router.events.pipe(
    filter(event => event instanceof NavigationEnd)
)
    .subscribe(event => {
        console.log(event);
    });