2

I am having a pure javascript library which is neither available in npm nor in any public repository. Its a pure javascript file with extension .js. It has some functions which i need to use in my Ionic2 application. How can i import such files in my Ionic2 Application. Any references will be much appreciated.

1 Answer 1

3

Include the library in index.html and declare its namespace in declarations.d.ts

Example: declare var LIBRARY_NAMESPACE: any;

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.