Closed kenadet closed 7 years ago
Hi @kenadet
This can be done by pure Javascript, Please find below code may help you.
`
export class NavComponent {
constructor(){}
ngOnInit(){ let css_link = 'http://abc.com/css/abc.css' this.getDynamicThemingCSS(css_link); } getDynamicThemingCSS(cssLink){ let linkTag = document.createElement('link'); linkTag.type = 'text/css'; linkTag.rel = 'stylesheet'; linkTag.href = cssLink; document.head.appendChild(linkTag); }
} `
This is great
How can I get javascript or jquery in my html or app component to work, noticed they are not working. The javascript in this page were not detected.