<ion-slide-box>屬性中循環(huán)播放:dose-continue=‘true’,但是博主在項目遇到這樣一個問題凯楔,從后臺獲取數(shù)據(jù)后將數(shù)據(jù)ng-repeat到<ion-slide>中窜骄,發(fā)現(xiàn)循環(huán)播放失效了,解決方法:
//在獲取數(shù)據(jù)之后先讓<ion-slide-box>更新一下
$ionicSlideBoxDelegate.update();
//設(shè)置循環(huán)播放為true
$ionicSlideBoxDelegate.loop(true);
在你的controller代碼中獲取數(shù)據(jù)成功的函數(shù)中加入這兩句代碼,