Generating the app
- Install nodejs (latest version)
- Install angular cli tools
1 |
# npm install –g @angular/cli |
- Create and run a new app
1 2 3 |
# ng new first # cd first # ng serve |
Add bootstrap support:
1 |
# npm install bootstrap --save |
- update .angular-cli.json file:
1 2 3 4 |
"styles": [ "styles.css", "../node_modules/bootstrap/dist/css/bootstrap.css" ], |
Add some bootstrap components to the page and test the results (restart ng serve to see the changes)
You can also integrate high level modules for angular: