How to import a js file and use it in angular library (not in project)

Viewed 1114

I am developing image zoom in angular4 library,I need to import openseadragon js file to my library.

If it is angular project then simply i can add cdn to index.html, but in library how can i import js file.

I tried with the angular-cli.json file in the below way, but it didn't worked.

"scripts": [
  "../node_modules/openseadragon/build/openseadragon/openseadragon.min.js"
]

Any solutions will be appreciated..

1 Answers
Related