AngularJS: How to show preload or loading until page is loaded completely?

后端 未结 6 670
太阳男子
太阳男子 2021-02-01 09:49

I\'ve an image gallery site where I\'m getting all images and image related data from the database as json format in my controller and then by using ng-repeat I\'m binding them

6条回答
  •  天涯浪人
    2021-02-01 09:57

    Try this:

    angular.element($window).bind('load', function() {
     $scope.yourLoaderDiv=true;
    });
    

提交回复
热议问题