Md. Nazmul Hossain Bilash Md. Nazmul Hossain Bilash - 3 months ago 7
AngularJS Question

How to show a loader untill on Js & CSS files loading using angularJs

I want to show a loader untill all css, js files are loaded. I want to do this using angularJs. Can anyone give me solutions for this problem ? How can detect all js, css files loaded using angularjs ?

Thanks in advance

Answer

I have found a solution & it works for me.

angular.module().run(function(){
   angular.element(document).ready(function(){
       /* Loaders code will be here */
   })
})