You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

module.ts 645B

12345678910111213141516171819202122
  1. import { NgModule } from '@angular/core';
  2. import { CommonModule } from '@angular/common';
  3. import { ErrorDisplayComponent } from './error-display.component';
  4. import { ANestedComponent } from './a-nested.component';
  5. import { RouterModule } from '@angular/router';
  6. @NgModule({
  7. imports: [CommonModule, RouterModule.forChild([{path: "helloWorld", component: ErrorDisplayComponent}])],
  8. exports: [RouterModule],
  9. declarations: [
  10. ErrorDisplayComponent,
  11. ANestedComponent
  12. ],
  13. entryComponents: [ErrorDisplayComponent],
  14. providers: [{
  15. provide: 'provider',
  16. useValue: ErrorDisplayComponent
  17. }],
  18. })
  19. export class PluginModule { }