一个页面有两个视图组成,希望他们单独加载,单独显示,而且加载过程中,希望添加加载中的样式。
我使用的是angular的cfpLoadingBar,在调用$http服务回调函数的不同位置定义cfpLoadingBar.start()及cfpLoadingBar.complete();但是这种方法的加载效果是呈现在整个页面的,而不是呈现在单独的视图模块。该则么办,求指教。
phpcn_u15822017-05-15 17:11:37
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