angular.js - angularJs loading effect
高洛峰
高洛峰 2017-05-15 17:09:21
0
2
690

Now I want to add the loading effect to the angular project: in the $http request of all pages, and when clicking the button, the loading effect is basically the global page. How should I do this?

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(2)
某草草

Look at this https://github.com/maseh87/ng...

洪涛

First make a loading p and keep showing it. If the $http request is successful, just change the show to hide

font-awesome has several ready-made loading classes, which are more convenient to use than animation


        var loaderElement = $('<p/>', {
            class: 'player-loader',
        }).appendTo(root_);
        
        $('<i/>', {
            class: 'fa fa-spinner fa-pulse fa-5x fa-fw'
        }).appendTo(loaderElement);
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template