Wallet/src/js/controllers/topbar.js

17 lines
330 B
JavaScript
Raw Normal View History

2015-03-06 12:00:10 -03:00
'use strict';
2015-10-01 02:13:33 -03:00
angular.module('copayApp.controllers').controller('topbarController', function($scope, $rootScope, go) {
this.onQrCodeScanned = function(data) {
$rootScope.$emit('dataScanned', data);
};
this.openSendScreen = function() {
go.send();
};
2015-03-06 12:00:10 -03:00
this.goHome = function() {
go.walletHome();
};
2015-03-06 12:00:10 -03:00
});