Last active
May 11, 2020 06:16
-
-
Save wesleygrimes/59bfed5667bc58bc8c0320acfd71c83f to your computer and use it in GitHub Desktop.
Dynamic Content Outlet Module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { CommonModule } from '@angular/common'; | |
| import { | |
| NgModule, | |
| NgModuleFactoryLoader, | |
| SystemJsNgModuleLoader | |
| } from '@angular/core'; | |
| import { DynamicContentOutletErrorComponent } from './dynamic-content-outlet-error.component'; | |
| import { DynamicContentOutletComponent } from './dynamic-content-outlet.component'; | |
| import { DynamicContentOutletService } from './dynamic-content-outlet.service'; | |
| @NgModule({ | |
| imports: [CommonModule], | |
| declarations: [ | |
| DynamicContentOutletComponent, | |
| DynamicContentOutletErrorComponent | |
| ], | |
| exports: [DynamicContentOutletComponent], | |
| providers: [ | |
| { | |
| provide: NgModuleFactoryLoader, | |
| useClass: SystemJsNgModuleLoader | |
| }, | |
| DynamicContentOutletService | |
| ] | |
| }) | |
| export class DynamicContentOutletModule {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment