ionic slide-box 少于3张bug修复
2016-11-28 16:34
127 查看
http://346454763.iteye.com/blog/2261321 详细方法点击查看
第一种方法可以实现 赞!!!!
解决方案1:在slide-change事件里判断当前的index, 但是这种方式的循环看起来会很别扭
$scope.slideHasChanged = function(index) {
$scope.slideIndex = index;
if ( ($ionicSlideBoxDelegate.count() -1 ) == index ) {
$timeout(function(){
$ionicSlideBoxDelegate.slide(0);
},2000);
}
};
第一种方法可以实现 赞!!!!
解决方案1:在slide-change事件里判断当前的index, 但是这种方式的循环看起来会很别扭
$scope.slideHasChanged = function(index) {
$scope.slideIndex = index;
if ( ($ionicSlideBoxDelegate.count() -1 ) == index ) {
$timeout(function(){
$ionicSlideBoxDelegate.slide(0);
},2000);
}
};
相关文章推荐
- Ionic基础——幻灯指令 ion-slide-box
- ionic的ion-slide-box使用ng-repeat不显示
- ionic入门教程第十课-接着说说ion-slide-box和它的注意事项、slide-tabs
- ionic $ionicSlideBoxDelegate 滑动框事件
- ionic 幻灯指令 ion-slide-box
- ionic之ion-slide-box实现图片轮播
- Ionic 图片预览ion-slide-box,ion-slide,ion-scroll实现
- ionic 图片轮播ion-slide-box问题
- ionic 滑动块 ion-slide-box 左右无缝滚动
- ionic之ion-slide-box实现图片轮播样式修改
- ionic,ion-slide-box获取后台数据后循环播放失效的解决方法。
- Ionic-轮播图ion-slide-box
- ionic中的slide-box
- ionic ion-slide-box网络加载图片,及时更新,无限循环
- ionic入门教程第十课-接着说说ion-slide-box和它的注意事项、slide-tabs
- 解决Ionic的ion-slide-box 2条数据渲染问题
- 解决Ionic的ion-slide-box 2条数据渲染问题
- ionic 幻灯指令 ion-slide-box
- ionic 中使用ion-slide-box
- 利用ngrepeat实现的日历加上ion-slide-box效果