# Ion-slide-box not grouping

**URL:** <https://forum.ionicframework.com/t/ion-slide-box-not-grouping/16676>\
**Category:** ionic-v1\
**Created:** [January 30, 2015, 10:26am UTC](https://forum.ionicframework.com/t/ion-slide-box-not-grouping/16676 "2015-01-30T10:26:21Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![sonya123](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@sonya123](https://forum.ionicframework.com/u/sonya123)\
**Post date:** [January 30, 2015, 10:26am UTC](https://forum.ionicframework.com/t/ion-slide-box-not-grouping/16676/1 "2015-01-30T10:26:21Z")

</div>

Is there anything wrong here:

```
<ion-slide-box auto-play="true" does-continue="true" ng-repeat="entry in allnews.entries">
            <ion-slide>
                <img ng-src="{{entry.articleImage}}">
            </ion-slide>
        </ion-slide-box>

```

The data contains a bunch of images. My problem is that I do can see the images BUT all of them at the same time, one under the other displayed vertically. I am supposed to see only 1 and then slide through the rest. I’ve tried moving the ng-repeat from the ion-slide-box to the ion-slide hoping it would group them but I don’t see anything, thanks.

---

<div class="post-metadata">

**Author:** ![sarale](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@sarale](https://forum.ionicframework.com/u/sarale)\
**Post date:** [January 30, 2015, 10:32am UTC](https://forum.ionicframework.com/t/ion-slide-box-not-grouping/16676/2 "2015-01-30T10:32:34Z")

</div>

hello, try (if it’s possible) to show us ur controller plz

---

<div class="post-metadata">

**Author:** ![sonya123](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@sonya123](https://forum.ionicframework.com/u/sonya123)\
**Post date:** [January 30, 2015, 10:56am UTC](https://forum.ionicframework.com/t/ion-slide-box-not-grouping/16676/3 "2015-01-30T10:56:03Z")

</div>

Here is the controller, thanks a lot sarale.

```
.controller('MyNewsCtrl', function ($http, $scope, $timeout, $rootScope, $window, $ionicPopover, $ionicSlideBoxDelegate) {

$scope.navSlide = function (index) {
    $ionicSlideBoxDelegate.slide(index, 500);
}

$scope.init = function () {
    $http.get("http://ajax.googleapis.com/ajax/services/feed/load", { params: { "v": "1.0", "q": "http://news.yahoo.com/rss/", "num": "100" } })
        .success(function (data) {
            $scope.allnews = data.responseData.feed;
        })
        .error(function (data) {
            //console.log("ERROR: " + JSON.stringify(data));
        });
};

```

All news contains the RSS feed json data.

---

<div class="post-metadata">

**Author:** ![sarale](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@sarale](https://forum.ionicframework.com/u/sarale)\
**Post date:** [January 30, 2015, 11:38am UTC](https://forum.ionicframework.com/t/ion-slide-box-not-grouping/16676/4 "2015-01-30T11:38:08Z")

</div>

$ionicSlideBoxDelegate.update();  
just after  
$scope.allnews = data.responseData.feed;

---

<div class="post-metadata">

**Author:** ![sarale](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@sarale](https://forum.ionicframework.com/u/sarale)\
**Post date:** [January 30, 2015, 11:39am UTC](https://forum.ionicframework.com/t/ion-slide-box-not-grouping/16676/5 "2015-01-30T11:39:14Z")

</div>

then your code must be shown like :

.controller(‘MyNewsCtrl’, function ($http, $scope, $timeout, $rootScope, $window, $ionicPopover, $ionicSlideBoxDelegate) {

$scope.navSlide = function (index) {  
$ionicSlideBoxDelegate.slide(index, 500);  
}

$scope.init = function () {  
$http.get(“[http://ajax.googleapis.com/ajax/services/feed/load](http://ajax.googleapis.com/ajax/services/feed/load)”, { params: { “v”: “1.0”, “q”: “[http://news.yahoo.com/rss/](http://news.yahoo.com/rss/)”, “num”: “100” } })  
.success(function (data) {  
$scope.allnews = data.responseData.feed;  
$ionicSlideBoxDelegate.update();  
})  
.error(function (data) {  
[//console.log](https://console.log)("ERROR: " + JSON.stringify(data));  
});  
};

---

<div class="post-metadata">

**Author:** ![sarale](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@sarale](https://forum.ionicframework.com/u/sarale)\
**Post date:** [January 30, 2015, 3:29pm UTC](https://forum.ionicframework.com/t/ion-slide-box-not-grouping/16676/6 "2015-01-30T15:29:22Z")

</div>

is that solved ur problem ?? @sonya123

---

<div class="post-metadata">

**Author:** ![windht](https://avatars.discourse-cdn.com/v4/letter/w/d9b06d/32.png) [@windht](https://forum.ionicframework.com/u/windht)\
**Post date:** [January 30, 2015, 7:06pm UTC](https://forum.ionicframework.com/t/ion-slide-box-not-grouping/16676/7 "2015-01-30T19:06:30Z")

</div>

You should put ng repeat in ion-slide instead of ion-slide-box.

---

<div class="post-metadata">

**Author:** ![sonya123](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@sonya123](https://forum.ionicframework.com/u/sonya123)\
**Post date:** [January 30, 2015, 10:00pm UTC](https://forum.ionicframework.com/t/ion-slide-box-not-grouping/16676/8 "2015-01-30T22:00:46Z")

</div>

My apologize for the delay responding @sarale, I got pullet out of the internet :(. I just made the changes you mentioned and it didn’t work, however, I moved the ng-repeat to the ion-slide and worked perfectly. So a combination of your answer and @windht answer did the trick. Thank you both so much.

---

<div class="post-metadata">

**Author:** ![sonya123](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@sonya123](https://forum.ionicframework.com/u/sonya123)\
**Post date:** [January 30, 2015, 10:02pm UTC](https://forum.ionicframework.com/t/ion-slide-box-not-grouping/16676/9 "2015-01-30T22:02:08Z")

</div>

Thanks so much, before I had the ng repeat in the ion-slide and I couldn’t see anything, but now I did it after adding the `$ionicSlideBoxDelegate.update();` in the location that @sarale told me and it works, so thank you both :).

---

<div class="post-metadata">

**Author:** ![sarale](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@sarale](https://forum.ionicframework.com/u/sarale)\
**Post date:** [January 31, 2015, 11:11pm UTC](https://forum.ionicframework.com/t/ion-slide-box-not-grouping/16676/10 "2015-01-31T23:11:44Z")

</div>

good luck then @sonya123
