Responsive image in slide box width problem

Hi i am trying to create image slider using ion-slide-box, but its not making image responsive i have tried with css if i give width:100% to image than slider shows nothing, looking for solution for this problem.

Hi found solution on ionic forum, the problem was caused by ng-repeat it was setting width 0 to slider-slides

you can find solution on this forum post

also here is my solution also

`

`

controller

$scope.updateSlider = function () { $ionicSlideBoxDelegate.update(); //or just return the function }

Hello…
Just add class in img tag :

class="img-responsive"

1 Like

no that problem was due to ng-repeat for slide it was setting width 0, once the loop is finished you need to update slideboxdelegate you can see in my reply.

1 Like