Ionic slide box doesn't work sometimes


#1
<ion-slide-box>
        <ion-slide ng-repeat="slide in banner">
                <a href="#{{slide.goods}}" class="item-image">
                    <img class="index-banner" ng-src="{{slide.img_path}}">
                </a>
        </ion-slide>
    </ion-slide-box>

I set an ion slide box in my site, I’m sure I have N slides in when the page is rendered, but I got nothing in this area on the web page, in Chrome emulation, the slides will show when I change the device-width or height, and on my mobile device, slides won’t be shown first time but after rotating device screen.
I dunno what happened, can anybody give me some solutions please?


#2

For this, you’ll need to call $ionicSlideBoxDelegate.update() in the controller for dynamic slide content.


#3

wow, it works now, many thanks, @mhartington.


#4

Bro, can you tell me where exactly insert $ionicSlideBoxDelegate.update() in controller ??

it doesn’t work with me.


#5

Can you provide an example of what you have?


#6

You can insert $ionicSLideBoxDelegate.update() after you bind the data of sliders. like this:
$scope.banners = bannerData.data;
$ionicSlideBoxDelegate.update();