0

I was implementing webpack to my angularJS project the other day, and my project threw an unkown RouterProvider error.

Changing my $router provider to $rootRouter fixed the issue. So my question is, what is the difference between them?

Thanks in advance, Jules

julesrose
  • 47
  • 9
  • `$rootRouter` acts as the connection between the Routers and the Location. [AngularJS Doc](https://docs.angularjs.org/api/ngComponentRouter/type/RootRouter) – Tobias Timm Sep 20 '16 at 07:44

1 Answers1

1

Router

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

Source found here

balajivaishnav
  • 2,795
  • 4
  • 23
  • 38