I am not able to use Bootstrap with the Angular CLI. I'm using ng-bootstrap and I'm following all the recommendations of the site, but without success, does anyone know how to use it?
install via npm:
npm install --save @ng-bootstrap/ng-bootstrap
Importing into the main module, with .forRoot ():
import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
@NgModule({
declarations: [AppComponent, ...],
imports: [NgbModule.forRoot(), ...],
bootstrap: [AppComponent]
})
export class AppModule {}
Importing into the module with the component I'm using:
import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
@NgModule({
declarations: [OtherComponent, ...],
imports: [NgbModule, ...]
})
export class MeuModule {}