Closed wizardnet972 closed 2 years ago
Add an option to create components as Single Angular Module Schematics using the schematics.
Single Angular Module Schematics makes tree-shaking much better.
The file should have both decorators: @Component and @NgModule.
@Component
@NgModule
@Component(...) export class Component... @NgModule({ declarations: [Component...], exports: [Component] }) export class Module...
@manfredsteyer I can send PR quickly.
I really like the SCAM idea as a mental model. For the implementation, I'd rather wait for Standalone Components
Add an option to create components as Single Angular Module Schematics using the schematics.
Single Angular Module Schematics makes tree-shaking much better.
The file should have both decorators:
@Component
and@NgModule
.@manfredsteyer I can send PR quickly.