| 12345678910111213141516171819202122 |
- import { NgModule } from '@angular/core';
- import { CommonModule } from '@angular/common';
- import { ErrorDisplayComponent } from './error-display.component';
- import { ANestedComponent } from './a-nested.component';
- import { RouterModule } from '@angular/router';
-
-
- @NgModule({
- imports: [CommonModule, RouterModule.forChild([{path: "helloWorld", component: ErrorDisplayComponent}])],
- exports: [RouterModule],
- declarations: [
- ErrorDisplayComponent,
- ANestedComponent
- ],
- entryComponents: [ErrorDisplayComponent],
- providers: [{
- provide: 'provider',
- useValue: ErrorDisplayComponent
- }],
-
- })
- export class PluginModule { }
|