I'm trying to use metronic theme with Angular 2.
Theme has some global stylesheets and Javascripts files which is required for all HTML pages. So, I included all those in my index.html.
But each page has some extra Stylesheets/Javascript files that are specific to that particular HTML page, and is required to render properly.
Angular 2 has concept of components. So, for example, HTML of login page is rendered via a LoginComponent which has styleURL
, where i can specify Stylesheets required for login page. But how to specify scripts for that particular page?
I tried using this method, but it didn't do anything.
Component
. Method from the link you gave makes sense, what is the problem with it? – Andrei Zhytkevich Jul 7 at 11:38