routerHashModule top-level constant

Module const routerHashModule

The main Router DI module when using hash routing.

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

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

Implementation

const routerHashModule = Module(provide: routerProvidersHash);