Angular获取路由名称

constructor(
      private route: ActivatedRoute,
      private router: Router
 ) {
      this.router.url
   }

你可能感兴趣的:(Angular获取路由名称)