Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save wesleygrimes/59bfed5667bc58bc8c0320acfd71c83f to your computer and use it in GitHub Desktop.

Select an option

Save wesleygrimes/59bfed5667bc58bc8c0320acfd71c83f to your computer and use it in GitHub Desktop.
Dynamic Content Outlet Module
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