Merge pull request #6322 from gabrielbazan7/fix/tabsFlash

avoid flickers on transitions and fixes hidden tab bug
This commit is contained in:
Gustavo Maximiliano Cortez 2017-06-30 15:31:06 -03:00 committed by GitHub
commit b730921fab
43 changed files with 66 additions and 56 deletions

View file

@ -41,8 +41,4 @@ angular.module('copayApp.controllers').controller('tabsController', function($ro
};
$scope.$on("$ionicView.beforeEnter", function(event, data) {
$rootScope.hideTabs = '';
});
});

View file

@ -0,0 +1,15 @@
'use strict';
angular.module('copayApp.directives')
.directive('showTabs', function($rootScope, $timeout) {
return {
restrict: 'A',
link: function($scope, $el) {
$scope.$on("$ionicView.beforeEnter", function(event, data) {
$timeout(function() {
$rootScope.hideTabs = '';
$rootScope.$apply();
});
});
}
};
});