I created a new Angular 5 project. After that I followed instructions given on Angular CLI GitHub page to use Bootstrap 4.0.0 with Angular 5.2.2. I use \'npm install bootstrap\'
npm install bootstrap --save
Open .angular-cli.json
or angular.json
file and update script section as shown in above answers.
Also add it to styles array:
"styles": [
"node_modules/bootstrap/dist/css/bootstrap.min.css",
"src/styles.css"
]
If this doesn't work, then open src\styles.css
and add:
@import "~bootstrap/dist/css/bootstrap.css";