I know similar issues has been asked but none of them have solved my problem.
So it seems that the style is getting applied but gets instantly overwritten by something else and I can't figure out by what.
The only reference to bootstraps and styles are done in the angular.json file.
I use Angular 8 and Bootstraps 4
npm install bootstrap --save
npm install bootstrap@4 jquery --save
npm install popper.js@^1.14.3 --save
angular.json
...
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [ // changed order here as well with no effect
"./node_modules/bootstrap/dist/css/bootstrap.min.css",
"src/styles.css"
],
"scripts": [
"./node_modules/jquery/dist/jquery.min.js",
"./node_modules/popper.js/dist/umd/popper.min.js",
"./node_modules/bootstrap/dist/js/bootstrap.min.js"
]
},
...
app.component.html
<div class="navbar">
<div class="navbar-inner">
<a class="brand" href="#">Title</a>
<ul class="nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
</ul>
</div>
</div>
<div class="btn-group">
<button class="btn">Left</button>
<button class="btn">Middle</button>
<button class="btn">Right</button>
</div>
The result in the browser looks like this:
the app.component.css is empty as well as any other stylesheet
Thanks