In angular 2, I just add them in the index.html like this:
<link rel="stylesheet" href="css/mycss.css">
But in angular 4 it has to be added to the .angular-cli.json file in the styles and script array section.
In my situation they don't seem to be loaded at all. No error but when I view the app in the browser, I know the styles didn't load. When I add the styles and js to the index.html file too it doesn't get loaded, I get a 404 in the console.
How do I fix this? Below is my version of Angular cli: @angular/cli : 1.0.2 Node : 6.9.2
via marvin ralph
No comments:
Post a Comment