Reputation: 7179
I started a new angular 2 project with ng-bootstrap. I can see the bootstrap js working fine, but not the CSS. Do I need to include those CSS explicitly, which I doubt would be the case, but I may be wrong too.
I even tried adding the bootstrap.css in my component, but nothing happened. Adding it on index.html does make the difference but I didn't want to call explicitly unless there is no other way.
Thanks,
Upvotes: 1
Views: 3716
Reputation: 7179
Glyphicon are no longer supported in Bootstrap 4, so missing fonts were the root cause rather than css.
Dropped the Glyphicons icon font. If you need icons, some options are: the upstream version of Glyphicons Octicons Font Awesome
src: https://v4-alpha.getbootstrap.com/migration/
Upvotes: 2
Reputation: 2317
Since you are using angular-cli
you can add the path to your global css files in the angular-cli.json
file to add it globally:
"styles": [
"../node_modules/path/to/bootstrap.css",
"styles.css"
]
Upvotes: 1