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教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...
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);
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