cant add script file to components html
问题 I have had a script file reference in index.html(root); index.html: <script src="page1.js"></script> <script src="assets/sliderfunctions.js"></script> <script src="assets/js/custom.js"></script> no need sliderfunctions.js here, it contains some specific functions about slider so I carry it to slider.component.html file but as you guess it doesnt work as I expected actually it never loaded to browser.. slider.component.ts: import {Component,ViewEncapsulation} from '@angular/core'; @Component({