-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use captuvo in a controller? #5
Comments
Hey Travis, I haven't tried it this way but you may try using $window:
Looking at it again though, I think your controller is getting initialized before ionicPlatform is ready. |
Yes, your right. I'm curious, how, when and where is the "captuvo" object referenced? I'm not including CaptuvoCDV.js into my html anywhere, so I'm wondering how that happens, |
Cordova takes care of that for you at startup when you added the plugin, and loads into the window object. This is why you have to wait for the $ionicPlatform.ready event to make sure that cordova/ionic has had a chance to load it before it is used. Hope that helps! |
Is this possible? For example:
Getting
ReferenceError: captuvo is not defined
. However it works in my app.js file here:I'm no Angular (or even js) pro, so I'm sure its something fundamental I am just not doing.
The text was updated successfully, but these errors were encountered: