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

service - Android MediaPlayer calls onCompletion before it already finished -

javascript - Training Neural Network to play flappy bird with genetic algorithm - Why can't it learn? -

javascript - Create a stacked percentage column -