标签: angular
是否有一种简单的方法可以通过路由名称获取@RouteConfig中定义的路由组件? 我尝试使用下划线代码,但它可以工作,但我需要知道最简单的方法。
beginReceiving() throws
答案 0 :(得分:5)
您应该可以从Instruction
Instruction
router.generate(['/RouteName']).component.componentType;