Wallet/js/controllers/home.js
2014-10-24 10:51:03 -03:00

12 lines
378 B
JavaScript

'use strict';
angular.module('copayApp.controllers').controller('HomeController', function($scope, $rootScope, $location, identity, notification, controllerUtils) {
controllerUtils.redirIfLogged();
$scope.retreiving = true;
identity.getWallets(function(err,ret) {
$scope.retreiving = false;
$scope.hasWallets = (ret && ret.length > 0) ? true : false;
});
});