appRootController.js 669 B

12345678910111213141516171819202122
  1. app.controller('AppRootController',['$scope','$window','$timeout',function($scope,$window,$timeout){
  2. var window = angular.element($window);
  3. $scope.load = function(){
  4. $timeout(function(){
  5. var preloader = angular.element(document.querySelector('.preload-screen'));
  6. preloader.css('opacity','0');
  7. },2700)
  8. $timeout(function(){
  9. var preloader = angular.element(document.querySelector('.preload-screen'));
  10. preloader.css('display','none');
  11. },3700)
  12. }
  13. $scope.isOpenMenu = false;
  14. $scope.toggleMenu = function(){
  15. if($scope.isOpenMenu){
  16. $scope.isOpenMenu = false;
  17. }else {
  18. $scope.isOpenMenu = true;
  19. }
  20. }
  21. }])