Engineering Full Stack Apps with Java and JavaScript
Add below lines to package.json
"bootstrap": "4.0.0-beta.2",
Run npm install on the project folder to download the files.
For the project to identify the javascript and css files add below lines to angular-cli.json
"styles": [
"styles.css",
"../node_modules/bootstrap/dist/css/bootstrap.min.css"
],
/bootstrap.js to scripts tag
"scripts": ["../node_modules/bootstrap/dist/js/bootstrap.js"],
Now we can start using bootstrap class files in html
Comments
angular-cli.json file name change
angular-cli.json file has been renamed/replaced with angular.json in version 6 of Angular.
Current code is tested with
Current code is tested with Angular5