Created
February 28, 2019 19:30
-
-
Save wesleygrimes/8c4541b5d65bb1a45cdd2b97d5acc5b5 to your computer and use it in GitHub Desktop.
Dynamic Content Outlet Example Module
This file contains 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 } from '@angular/core'; | |
import { DynamicMultipleOneComponent } from './dynamic-multiple-one.component'; | |
import { DynamicMultipleTwoComponent } from './dynamic-multiple-two.component'; | |
@NgModule({ | |
declarations: [MySpecialDynamicContentComponent], | |
imports: [CommonModule], | |
entryComponents: [MySpecialDynamicContentComponent] | |
}) | |
export class MySpecialDynamicContentModule { | |
static dynamicComponentsMap = { | |
MySpecialDynamicContentComponent | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment