D
D
Dmitry Arushanov2014-11-28 16:06:32
Angular
Dmitry Arushanov, 2014-11-28 16:06:32

How to work with ngCordova correctly?

Good day to all!
Probably a stupid question. But still how.
Created an ionic application.
Added cordova plugin let's say inAppBrowser.
Added ngCordova to work with agshular cordova.
Further I read that the plugin should be used after the deviceready event.
And here is the stupor. The examples are written like this

document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady(){//some code}

But I need to call the plugin functionality on clicks on links or buttons. But something doesn't work.
Who can explain this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Bobrov, 2015-02-11
@bobrov1989

have you read the inAppBrowser docs here ngcordova.com/docs/plugins/inAppBrowser ?
I don’t see any mention of the redi device anywhere - in general, here’s a good video on this topic https://www.youtube.com/watch?v=dV3xUVKH-64&list=P...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question