0

I created Angular project using angular cli. I installed bootstrap using npm. But, it's not applying bootstrap styles without adding bootstrap css in index.html.

How to resolve this? I don't want to add bootstrap css manually.

3
  • are you using cli ? Commented Nov 8, 2017 at 14:39
  • Yes, I am using. Commented Nov 8, 2017 at 14:41
  • the answer by @wdanda is the way to do it Commented Nov 8, 2017 at 14:41

1 Answer 1

0

Add this to your .angular-cli.json file:

"styles": [
    "../node_modules/bootstrap/dist/css/bootstrap.min.css"
],
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.