Just like addImportToModule
or addProviderToModul
,my module file look like this:
const EXAMPLES = [
ButtonIconExampleComponent,
ButtonTextExampleComponent,
ButtonDashedExampleComponent
]
@NgModule({
declarations: EXAMPLES,
imports: [CommonModule],
entryComponents: EXAMPLES,
exports: EXAMPLES,
providers: []
})
export class ExamplesModule {}
variable EXAMPLES
can be used many times,so I want to change it with schematics utils function.