ng-cordova.min.js download


https://github.com/ionic-team/ng-cordova/releases






- index.html


<script src="js/ng-cordova.min.js">



- app.js


angular.module( "myApp", [ "ionic", "ngCordova" ])




- controllers.js


angular.module( "myApp.controllers", [ "ngCordova" ])


.controller( "myApp-controller", function( $cordovaBarcodeScanner ){


$scope.showClick = function(){


$cordovaBarcodeScanner.scan().then( function( imageData ){


alert( imageData );


}, function( error ){


alert( error );


});

}

});

'frontend > Ionic angular 1' 카테고리의 다른 글

아이오닉 로딩 - $ionicLoading  (0) 2017.11.06
아이오닉 팝업창 - $ionicPopup alert  (0) 2017.11.06
$http 데이터 보내기 - params  (0) 2017.11.03
CORS 문제 해결 - proxy  (0) 2017.11.03
Ionic DevApp 출시  (0) 2017.11.03

+ Recent posts