📌  相关文章
📜  如何在不改变角度的情况下导航 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:37.833000             🧑  作者: Mango

代码示例2
// Place import at the top
import { Router,NavigationStart} from '@angular/router';

//Place the code below inside your class
constructor(private router: Router){}

ngOnInit(){
   this.router.events.subscribe(event =>{
      if (event instanceof NavigationStart){
           
      }
   })
}