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
Post a Comment