I'm working on PDF Viewer development in Angular 5. I'm done with writing HTML code for the UI part. Now I've JavaScript files that provide functionality for the UI elements. As Angular 5 supports typescript for implementing functionality for UI components, I want to include JavaScript files in Angular Project and call them from my Typescript code.
Questions:
- How and where to include JavaScript Files in Angular Project?
- How to call the JavaScript Functions from Typescript class?
It would be great if anyone provides me an example.