How can a .js file be included in an Angular 4 component?
I have searched and in all the examples of how to use jQuery in a component write directly from the code inside the export of the class as here :
export class AppComponent {
// script
}
What methods are there to "import" or indicate the path of an existing script? And what would be the best way to organize the scripts to be able to reuse it throughout the project? Or what, by agreement, is usually done in projects with Angular