Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to add bootstrap in angular cli

//1. Install ngx-bootstrap and bootstrap:
npm install ngx-bootstrap bootstrap --save

//2. Open src/app/app.module.ts and add:
import { AlertModule } from 'ngx-bootstrap';
...
@NgModule({
...
imports: [AlertModule.forRoot(), ... ],
... 
})
          
//3. Open angular-cli.json        
"styles": [
"styles.css",
"../node_modules/bootstrap/dist/css/bootstrap.min.css"
],
          
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #bootstrap #angular #cli
ADD COMMENT
Topic
Name
5+4 =