@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


