I am developing a large application using Angular 2 and ASP.net MVC.
I have approximately 120 components in my application which are all declared in @ngModule declarations block:
@NgModule({
imports: [CommonModule],
declarations: [Component1, Component2, Component3, ..., Component120]
})
Is there a mechanism where I can shorten this?
module/submodule, think in such a way that each module should not have more than10-15components, the you can create NgModule for eachsubmodule& load them lazily via router feature(this can also add boost in application performance).