routerModule top-level constant

Module const routerModule

The main Router DI module.

The routerModule should be added to the app's root injector.

@GenerateInjector.fromModules([routerModule])
final InjectorFactory appInjector = ng.appInjector$Injector;
...
runApp(ng.MyAppComponentNgFactory, createInjector: appInjector);

Implementation

const routerModule = Module(provide: routerProviders);