RouterUpgradeInitializer

const

npm Package @angular/router
Module import { RouterUpgradeInitializer } from '@angular/router/upgrade';
Source router/upgrade/src/upgrade.ts

Creates an initializer that in addition to setting up the Angular router sets up the ngRoute integration.

const RouterUpgradeInitializer: any;

How To Use

@NgModule({
 imports: [
  RouterModule.forRoot(SOME_ROUTES),
  UpgradeModule
],
providers: [
  RouterUpgradeInitializer
]
})
export class AppModule {
  ngDoBootstrap() {}
}

© 2010–2018 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v5.angular.io/api/router/upgrade/RouterUpgradeInitializer