0
바코드 스캐너가있는 코 도바 앱에서 작업하고 있습니다. 플러그인을 이미 추가했습니다. cordova 플러그인을 추가하십시오. https://github.com/wildabeast/BarcodeScanner.git (내 첫 번째 앱에서는 제대로 작동하지만 이온 프레임 워크에서 빌드 된 것입니다. 그 일과 관련이 있다면 몰라요.) 그래서 전화 할 때 : 내가 기능에 대한 내용은 $cordovaBarcodeScanner
주입에 문제처럼 여전히 같은 소리를 언급 tryed했습니다AngularJS BarcodeScanner 플러그인
Error: [$injector:unpr] http://errors.angularjs.org/1.2.27/ $injector/unpr?p0=ordovaBarcodeScannerProvider
:
function barcodeCtrl($scope, $cordovaBarcodeScanner)
{
$scope.scanBarcode = function() {
$cordovaBarcodeScanner.scan().then(function(imageData) {
alert(imageData.text);
console.log("Barcode Format -> " + imageData.format);
console.log("Cancelled -> " + imageData.cancelled);
}, function(error) {
console.log("An error happened -> " + error);
});
};
}
나는 오류가 있습니다.
미리 감사드립니다.
그래, 난 내가 여전히 같은 결과 첫째 이온에이고 프로젝트를 만들 때이 완료 되었으나으로 포함하고 모듈의 ngCordova 주입 잊었 감사합니다. – Stv