您的位置:首页 > Web前端 > AngularJS

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);  

    }  

}; 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ionic 滑动盒子 angular