txp at home

This commit is contained in:
Matias Alejo Garcia 2016-09-01 19:14:18 -03:00
commit b9ebe65c9b
No known key found for this signature in database
GPG key ID: 02470DB551277AB3
12 changed files with 177 additions and 96 deletions

View file

@ -0,0 +1,23 @@
'use strict';
angular.module('copayApp.controllers').controller('proposalsController',
function($timeout, $scope, profileService, $log, txpModalService) {
var self = this;
$scope.init = function() {
profileService.getTxps(50, function(err, txps) {
if (err) {
console.log('[tab-home.js.35:err:]', $log.error(err)); //TODO
return;
}
$scope.txps = txps;
$timeout(function() {
$scope.$apply();
}, 1);
});
}
$scope.openTxpModal = txpModalService.open;
});