I want to use product-carousel.module.ts in home component. My product-carousel module looks like
const COMPONENTS = [
ProductBlockComponent,
ProductCarouselComponent,
ProductCarouselContainerComponent
];
@NgModule({
imports: [
CommonModule,
RouterModule
],
declarations: COMPONENTS,
providers: [],
exports: COMPONENTS
})
export class ProductCarouselContainerModule {}
Than I register it in home.module.ts
@NgModule({
imports: [
ProductCarouselContainerModule,
CommonModule,
FormsModule,
ProductCarouselContainerModule,
ComponentsModule,
]),
],
declarations: [
HomeContainer
],
providers: [
ProductApiService
]
})
export class HomeModule {}
I want to use ProductCarouselContainerComponent. It has selector 'offer-carousel'. In home component I using it like this
<div class="container-fluid currently-funding">
<product-carousel></product-carousel>
</div>
And as result I have
Error: Template parse errors: 'Product-carousel' is not a known element: 1. If 'offer-carousel' is an Angular component, then verify that it is part of this module. 2. If 'Product-carousel' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA
What I missed?