Ionic 1 Call Cordova Plug Ins


1. HTML


<button class = "button" ng-click = "callCordova()">
Call Cordova Plug In</button>


2.JS

function($scope, $stateParams) {



    var cdv = function(options) {

        console.log('begin cdv');

        document.addEventListener("deviceready", function() {

            console.log('deviceReady');

            /*cordova task begin*/




            /*cordova task end*/

        }); /*device ready*/

    } /*cdv*/

}/*controller*/

Comments

Popular posts from this blog

Networking In VirtualBox

requestFileSystem() vs resolveLocalFileSystemURL()

Ionic 1 Cordova Files (temporary)