Wallet/src/js/controllers/activity.js

22 lines
693 B
JavaScript
Raw Normal View History

2016-08-24 17:54:01 -03:00
'use strict';
angular.module('copayApp.controllers').controller('activityController',
function($rootScope, $timeout, $scope, $state, lodash, profileService, walletService, configService, txFormatService, $ionicModal, $log, platformInfo) {
var self = this;
$scope.init = function() {
$scope.fetchingNotifications = true;
2016-08-31 17:12:36 -03:00
profileService.getNotifications(50, function(err, n) {
if (err) {
console.log('[tab-home.js.35:err:]', $log.error(err)); //TODO
return;
}
$scope.fetchingNotifications = false;
2016-08-31 18:12:28 -03:00
$scope.notifications = n;
$timeout(function() {
$scope.$apply();
}, 1);
});
2016-08-24 17:54:01 -03:00
}
});