Angular : How to add bootstrap to Angular CLI Project
Follow these steps to add bootstrap
Step-1 : Install ngx-bootstrap and bootstrap
npm install ngx-bootstrap bootstrap --save
Step-2 : Open src/app/app.module.ts and add
import { AlertModule } from 'ngx-bootstrap';
...
@NgModule({
...
imports: [AlertModule.forRoot(), ... ],
...
})
Step-3 : Open angular.json file and add these lines under styles array
"styles": [
"styles.css",
"../node_modules/bootstrap/dist/css/bootstrap.min.css"
],
If you like my work you can help me in growing through following ways