Is it possible to apply an external CSS to a component in AngularJS1?
And if so - how?
I could find only examples which apply inline css...
-
see more about lazy-load here: stackoverflow.com/a/29348559/3332734Francis Batista– Francis Batista2017-04-09 13:52:36 +00:00Commented Apr 9, 2017 at 13:52
Add a comment
|
1 Answer
AngularJS component's template is nothing different then a regular HTML template. So including the CSS in one of the standard ways should work.
Inside of the HTML of your template use:
<link rel="stylesheet" type="text/css" href="theme.css">
Where theme.css will be replaced with the absolute path to your external CSS.