Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save wesleygrimes/8c4541b5d65bb1a45cdd2b97d5acc5b5 to your computer and use it in GitHub Desktop.
Save wesleygrimes/8c4541b5d65bb1a45cdd2b97d5acc5b5 to your computer and use it in GitHub Desktop.
Dynamic Content Outlet Example Module
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