Wallet/src/js/directives/hideTabs.js

15 lines
386 B
JavaScript
Raw Normal View History

2016-10-16 21:51:50 -03:00
'use strict';
angular.module('copayApp.directives')
2016-10-17 14:09:54 -03:00
.directive('hideTabs', function($rootScope, $timeout) {
2016-10-16 21:51:50 -03:00
return {
restrict: 'A',
link: function($scope, $el) {
2016-10-17 14:09:54 -03:00
$scope.$on("$ionicView.beforeEnter", function(event, data){
$timeout(function() {
$rootScope.hideTabs = 'tabs-item-hide';
$rootScope.$apply();
});
2016-10-16 21:51:50 -03:00
});
}
};
});