84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
1、每个页面的动态数据都是在控制器里面用$http.get()获取的,然后在html页面用ng-repeat循环出来!2、跳转页面 返回上一页我都是用a标签写的出现问题:每次返回上一页的时候都要重新加载一次数据,这样给用户体验太差了!
认证高级PHP讲师
What do you use for routing?ui-router? Don’t jump directly to the a tag on a single page. You have to reload the resources every time.
ui-router
Generally, single-page routing has corresponding jump methods.
router-link='/xxx/xxx'
In controller,$state.go('/xxx/xxx');
$state.go('/xxx/xxx');
What do you use for routing?
ui-router
? Don’t jump directly to the a tag on a single page. You have to reload the resources every time.Generally, single-page routing has corresponding jump methods.
Ng1, ui-router
router-link='/xxx/xxx'
In controller,
$state.go('/xxx/xxx');