Home Animation Only Once fix

This commit is contained in:
Sagi Dayan 2015-06-18 00:04:36 +03:00
parent 83b252249d
commit af608da379
3 changed files with 6 additions and 2 deletions

View file

@ -65,4 +65,7 @@ angular.module('SeHub')
// animation
$scope.isEnterd = top.setIsEnterd;
}]);

View file

@ -2,7 +2,7 @@ angular.module('SeHub')
.controller('mainController', ['$scope', '$rootScope', 'dataService','apiService', '$cookies', '$cookieStore', '$location', '$window',
function($scope, $rootScope, dataService, apiService, $cookies, $cookieStore, $location, $window) {
top.setIsEnterd = true;
var token = $cookies['com.sehub.www'];
$scope.loadingData = true;
@ -81,6 +81,7 @@ angular.module('SeHub')
$scope.menuItems[i].style = "";
}
};
top.setIsEnterd = false;
$location.path(route);
}

View file

@ -3,7 +3,7 @@
<md-progress-circular md-mode="indeterminate"></md-progress-circular>
</div>
<md-content layout-padding>
<md-card class="gray-font fadeOutUp">
<md-card class="gray-font fadeOutUp" ng-if="isEnterd">
<div layout="row">
<div class="spacer"></div>
<div>