Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

How can I use function of other javascript file in ionic project? github

$
0
0

@dcscodelife wrote:

Now I have a ionic v1 example project, I want add I my own js file mqttws31.js to it.
There are many javascript functions in this js file.
In the login.html page

when I click blue submit button, it will call a function onConnect() which is defind in my own mqttws31:

In index.html file , I have include "mqttws31.js":

But when I click submit button, chrome browser shows error following:

How can I call onConnect() in other js file, How can insert other js file to ionic's angular framework?

I have update code to github without node_modules directory.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>