ui router digest 10 time
2015-10-30 18:44
375 查看
refer : https://github.com/angular-ui/ui-router/issues/600
$urlRouterProvider.when("/", "/companys") redirect to companys 时,如果被 onStateChange 拦截并且 preventDefault() + $state.go('otherState'), otherState有使用 templateUrl 需要异步加载的话,那么就会出现这个 Bug 了!
在做login系统时很容易会中这个bug哦!
解决方案是不要用 templateUrl 在这个redirect的界面,或者make sure when 不会被 stateChange preventDefault. 总之就是避开吧!
$urlRouterProvider.when("/", "/companys") redirect to companys 时,如果被 onStateChange 拦截并且 preventDefault() + $state.go('otherState'), otherState有使用 templateUrl 需要异步加载的话,那么就会出现这个 Bug 了!
在做login系统时很容易会中这个bug哦!
解决方案是不要用 templateUrl 在这个redirect的界面,或者make sure when 不会被 stateChange preventDefault. 总之就是避开吧!
相关文章推荐
- 1062. Talent and Virtue
- 关于UIAlertController的使用
- Could not find conduit initiator for address
- UICollectionViewFlowLayout 流水布局
- UINavigationController
- [IOSS]UITableView自定义cell
- Houdini Event Queue Full. Events being dropped:的解决方案
- EasyUI combogrid 实现分页和数据模糊搜索
- iOS 【UIKit-UITableView】
- iOS开发UI中懒加载的使用方法
- 工作笔记 11
- CQRS学习——IOC,配置,仓储隔离以及QueryEntry[其三]
- ui中各种手势的用法
- iOS使用xib自定义UIView
- DP+BIT(优化复杂度) UESTC 1217 The Battle of Chibi
- UUID of GATT descriptor
- 苹果开发 笔记(85)UIActionSheet 和UIAlertView 已经失效
- 解决Android Studio卡在building *** gradle project info
- UILabel、UITextField、UIButton
- UUID of GATT characteristic