I am using angular 2 (created project using cli) and installed bootstrap.
Then bootstrap CSS is added to angular-cli.json, then the style works, but when I have a navigation bar with drop-down menus, it doesn't open them. I thought due to a lack bootstrap.js, and then added that in the scripts section of angular-cli.json he complained about jquery !! then added that.
It started working, but I'm not sure what I'm doing right.
insert angular-cli.json for reference.
"styles": [
"styles.css",
"../node_modules/bootstrap/dist/css/bootstrap.css"
],
"scripts": ["./js/jquery.js", "../node_modules/bootstrap/dist/js/bootstrap.js"],
source
share