txp at home
This commit is contained in:
parent
b90e06dd4c
commit
b9ebe65c9b
12 changed files with 177 additions and 96 deletions
23
src/js/controllers/proposals.js
Normal file
23
src/js/controllers/proposals.js
Normal 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;
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue