Setting up the ng-bootstrap

In the Command Prompt or Terminal pointing at the application root folder, run the following command to install dependencies:

$ npm install --save @ng-bootstrap/ng-bootstrap

Or you can use this:

$ yarn add @ng-bootstrap/ng-bootstrap

Next, we need to import the NgbModule into our Angular application. Open client\app\app.module.ts and add the following import:

// SNIPP SNIPPimport { NgbModule } from '@ng-bootstrap/ng-bootstrap';
// SNIPP SNIPP

And then update imports as follows:

// SNIPP SNIPPimports: [    BrowserModule,    RoutingModule,    SharedModule,    FormsModule,    HttpClientModule,    NgxEditorModule,    TagsInputModule.forRoot(),    NgbModule.forRoot()],// SNIPP SNIPP

This concludes setting up ng-bootstrap.

Get Google Cloud AI Services Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.