Wallet/src/js/directives/qrScanner.js

16 lines
352 B
JavaScript
Raw Normal View History

2015-07-23 11:48:28 +03:00
'use strict';
angular.module('copayApp.directives')
2016-08-17 15:23:17 -03:00
.directive('qrScanner', function() {
2016-05-31 16:52:38 -03:00
return {
restrict: 'E',
scope: {
onScan: "&",
beforeScan: "&"
},
2016-08-17 15:23:17 -03:00
controller: 'tabScanController',
2016-05-31 16:52:38 -03:00
replace: true,
2016-08-18 19:25:30 -03:00
template: '<a on-tap="openScanner()"><i class="icon ion-qr-scanner"></i></a>'
2016-05-31 16:52:38 -03:00
}
});