ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

SlideBox doesn't update with $scope variable on iOS simulator and device

Open CoenWarmer opened this issue 12 years ago • 2 comments

When using Slidebox with a ng-repeat and a scope variable, the slidebox doesn't show slides reliably on iOS simulator and device.

On desktop browser the slidebox is immediately populated with the scope variable. But on device the slidebox initially remains empty until you navigate to another state and navigate back again. Then it is filled like it should be.

$ionicSlideBoxDelegate.update(); doesn't seem to do anything, regardless of timeout length.

I'm using this in my template:

<ion-slide ng-repeat="artist in random_artists"> <div class="box"> {{artist.title}} </div> </ion-slide>

And this in my controller:

.controller('HomeCtrl', function($scope, $stateParams, $ionicSlideBoxDelegate, DataHandler) { $scope.random_artists = DataHandler.GetRandomArtists(3); setTimeout(function(){ $ionicSlideBoxDelegate.update(); },5000); }

CoenWarmer avatar Mar 19 '14 11:03 CoenWarmer

http://ajoslin.github.io/docs/nightly/api/controller/ionicSlideBox/

ajoslin avatar Mar 21 '14 20:03 ajoslin

@CoenWarmer i'm sorry for comment in this closed issue. But i want to know, have you fix it? Because i have the same problem with you. Thanks

kukusumaa avatar Apr 28 '15 10:04 kukusumaa