With Angular you have two options to load scripts (js and css):
- In the
index.html:<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css"> - In the
angular.json:"styles": ["node_modules/font-awesome/css/font-awesome.css"]
What's the advantage of each option? To my understanding, the things in angular.json are bundled together while the scripts linked in index.html are loaded dynamically. So it boils down to the discussion whether it's better to having prebundled scripts or loading them e.g. from a CDN? Or are there other benefits from putting scripts into angular.json e.g. of organizational nature? Is it "cleaner" for some reason?