'Angular error: ngb carousel is not a know element
I'm trying to create a caroussel with ngb-carousel but i got the error: 'ngb-carousel' is not a know element
- If 'ngb-carousel' is an Angular component, then verify that it is part of this module.
- If 'ngb-carousel' is a web component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@Ngmodule.schemas of this component to suppress this message.
Solution 1:[1]
Import the Carousel module in the app.module.ts file.
import { NgbCarouselModule } from '@ng-bootstrap/ng-bootstrap';
@NgModule({
declarations: [],
imports: [
NgbCarouselModule,
]
})
export class AppModule { }
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Kavindu Chamith |
