How to use a library added in "Other JS" in Creator


#1

Hi,

Anybody knows how to use a js library that is added in as a file under “Other JS”?

Example: I want to use a crypto library in my app on Creator. I found crypto-js here: https://github.com/brix/crypto-js. The same page is mentioning to create the file crypto-js.js by running “bower install crypto-js”. So I did that and created a file under “Other JS” menu in my Creator application project. Creator automatically adds “” to the External JS in External Settings of the project.
Now, how to access CryptoJS in my code on creator? How to inject the library?

Appreciate if anyone can give a hint as how to add and use a library to Creator project.

Thanks!