Angular: $router 和 $root 路由器的区别?

Angular: Diffenrence between $router and $rootRouter?

前几天我正在为我的 angularJS 项目实现 webpack,我的项目抛出了一个未知的 RouterProvider 错误。

将我的 $router 供应商更改为 $rootRouter 解决了这个问题。 所以我的问题是,它们之间有什么区别?

提前致谢, 朱尔斯

路由器

Displays the Routing Components for the active Route. Manages navigation from one component to the next

RootRouter

The top level Router that interacts with the current URL location

找到来源 here