remove back view when go home

This commit is contained in:
Gabriel Bazán 2016-09-22 16:33:30 -03:00
commit fd06a330c9

View file

@ -1,7 +1,7 @@
'use strict'; 'use strict';
angular.module('copayApp.controllers').controller('copayersController', angular.module('copayApp.controllers').controller('copayersController',
function($scope, $log, $ionicNavBarDelegate, $timeout, $stateParams, $state, $rootScope, lodash, profileService, walletService, popupService, platformInfo, gettextCatalog, ongoingProcess) { function($scope, $log, $ionicNavBarDelegate, $timeout, $stateParams, $state, $rootScope, $ionicHistory, lodash, profileService, walletService, popupService, platformInfo, gettextCatalog, ongoingProcess) {
$scope.$on("$ionicView.enter", function(event, data) { $scope.$on("$ionicView.enter", function(event, data) {
init(); init();
@ -75,6 +75,7 @@ angular.module('copayApp.controllers').controller('copayersController',
}; };
$scope.goHome = function() { $scope.goHome = function() {
$ionicHistory.removeBackView();
$state.go('tabs.home'); $state.go('tabs.home');
}; };