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
  • 5,006
  • 17
  • 69
  • 106

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,582
  • 2
  • 10
  • 34