Angular: Add Bootstrap

Bagaimana nak add bootrap dalam Angular?

Buka teminal. Create new angular project.

ng new angular-project
cd angular-project

Install bootstrap menggunakan npm

# untuk version 3.x
npm install bootstrap --save

# untuk version 4.x
npm install bootstrap@next --save

#guna command "sudo" jika perlu

Command diatas akan install bootrap module. Boleh linat dalam direktori node_modules/.
Last sekali configure .angular-cli.json

"apps":[
...
...,
"styles":[
"../node_modules/bootstrap/dist/css/bootstrap.min.css",//<-- tambah line ni
"styles.css"
],