Styles loaded in an area, how to define angular.js, cfpLoadingBar method
某草草
某草草 2017-05-15 17:09:37
0
1
571

A page consists of two views. I want them to be loaded and displayed separately. During the loading process, I want to add loading styles.
I use angular’s ​​cfpLoadingBar, and define cfpLoadingBar.start() and cfpLoadingBar.complete() at different locations where the $http service callback function is called; however, the loading effect of this method is presented on the entire page, not Rendered in a separate view module. What to do, please advise.

某草草
某草草

reply all(1)
phpcn_u1582

I have never used the component you mentioned. It may be complicated by the component.
A simple way is to divide the page into two parts when designing the router (ui router), and use two ui-views, so that they are independent. Just add loading to the template page respectively

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template