Skip to content

Instantly share code, notes, and snippets.

@pglazkov
Created November 11, 2017 13:24
Show Gist options
  • Save pglazkov/9a1087512acd1553b6415e1213fc0d30 to your computer and use it in GitHub Desktop.
Save pglazkov/9a1087512acd1553b6415e1213fc0d30 to your computer and use it in GitHub Desktop.
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component'
import { DynamicComponent } from './dynamic.component';
import { ComponentFactoryService } from './component-factory.service';
@NgModule({
declarations: [
AppComponent,
DynamicComponent
],
imports: [BrowserModule],
providers: [ComponentFactoryService],
bootstrap: [AppComponent],
entryComponents: [DynamicComponent]
})
export class AppModule { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment