mirror of https://github.com/BTCPrivate/copay.git
14 lines
445 B
JavaScript
14 lines
445 B
JavaScript
'use strict';
|
|
|
|
angular.module('copayApp.controllers').controller('HomeWalletController',
|
|
function($scope, $rootScope) {
|
|
$rootScope.title = 'Home';
|
|
$scope.addr = _.last($rootScope.wallet.getReceiveAddresses());
|
|
|
|
// This is necesarry, since wallet can change in homeWallet, without running init() again.
|
|
$rootScope.$watch('wallet', function() {
|
|
$scope.addr = _.last($rootScope.wallet.getReceiveAddresses());
|
|
});
|
|
}
|
|
);
|