Reputation: 5757
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 ?
Upvotes: 1
Views: 238
Reputation: 6949
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.
Upvotes: 2