Lastly, 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(productRoute)],
declarations: [
ProductComponent,
ProductDetailComponent,
ProductUpdateComponent,
ProductDeleteDialogComponent
],
entryComponents: [ProductDeleteDialogComponent]
})
export class StoreProductModule {}
The module declares the components that are used by it. The module also imports shared modules so that it can access shared services and components. The module is lazily loaded by the StoreEntityModule defined in entity.module.ts under src/main/webapp/app/entities.
In the next section, we'll take a look at the pages that will be generated.