0

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...

Idov
  • 4,870
  • 14
  • 63
  • 103

1 Answers1

2

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.

Tome Pejoski
  • 1,562
  • 2
  • 10
  • 33