javascript - Using custom .js libs in ionic2 -


i included mylib.js file /assets/scripts, , index.html added line:

<script src="assets/scripts/mylib.js"></script> 

under cordova.js.

for example, in mylib.js have function getdata().

how can call home.ts or page .ts ?

it's not working when i'm trying sth getdata();


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -