1

I am working on angular 2 project. We can include css and js in angular-cli.json and we can also include it in index.html file.

But which one is better and why ?

1 Answer 1

2

You should always write it in angular-cli.json..!

Its a config file through which index.html will be populated based on your configs in angular-cli.json, which is managed by webpack.

Sign up to request clarification or add additional context in comments.

1 Comment

Do you have any references to official docs substantiating this?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.