March 2018
Intermediate to advanced
380 pages
9h 23m
English
Finally, we have a module for the entity. Angular modules can be used to consolidate all components, directives, pipes, and services of an entity so that they can be imported into other modules easily. The StoreProductModule module is defined in product.module.ts:
@NgModule({ imports: [ StoreSharedModule, RouterModule.forChild(ENTITY_STATES) ], declarations: [ ProductComponent, ProductDetailComponent, ProductDialogComponent, ProductDeleteDialogComponent, ProductPopupComponent, ProductDeletePopupComponent, ], entryComponents: [ ProductComponent, ProductDialogComponent, ProductPopupComponent, ProductDeleteDialogComponent, ProductDeletePopupComponent, ], providers: [ ProductService, ProductPopupService, ProductResolvePagingParams, ...