# $ionicScrollDelegate missing handle error

**URL:** <https://forum.ionicframework.com/t/ionicscrolldelegate-missing-handle-error/30260>\
**Category:** uncategorized\
**Created:** [August 10, 2015, 6:41pm UTC](https://forum.ionicframework.com/t/ionicscrolldelegate-missing-handle-error/30260 "2015-08-10T18:41:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hdouanla](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/hdouanla/32/14415_2.png) [@hdouanla](https://forum.ionicframework.com/u/hdouanla)\
**Post date:** [August 10, 2015, 6:41pm UTC](https://forum.ionicframework.com/t/ionicscrolldelegate-missing-handle-error/30260/1 "2015-08-10T18:41:57Z")

</div>

Hi,

I’m using a carousel in my mobile app to load news categories in a view. I’ve been struggling for hours with $ionicScrollDelegate where handle cannot be found, see error message below.

> Delegate for handle “handle\_31” could not find a corresponding element with delegate-handle=“handle\_31”!  
> scrollTop() was not called!  
> Possible cause: If you are calling scrollTop() immediately,  
> and your element with delegate-handle=“handle\_31” is a child of your controller, then your element may not be compiled yet.  
> Put a $timeout around your call to scrollTop() and try again.

My view :

```
<div class="list card" ng-repeat="category in categories">

            <ion-item class="item-stable title"
                      ng-click="toggleGroup(category.id)"
                      delegate-handle="handle_{{ category.id }}"
                      ng-class="{active: isGroupShown(category.id)}">
                <h2><i class="icon" ng-class="isGroupShown(category.id) ? 'ion-minus' : 'ion-plus'"></i> &nbsp;
                    {{ 'category_' + category.alias | translate }}</h2>
            </ion-item>

```

In my controller :

```
 /*
 * if given group is the selected group, deselect it
 * else, select the given group
 */
$scope.toggleGroup = function(category) {
    if ($scope.isGroupShown(category)) {
        $scope.shownGroup = null;
    } else {
        $scope.shownGroup = category;

        // if the toogle opens the current group, then scroll to the group title as defined in the view
        $ionicScrollDelegate.$getByHandle('handle_' + category + '').scrollTop();

    }
};

```

Has enyone ever faced this issue? If yes, how can this be solved?

---

<div class="post-metadata">

**Author:** ![hdouanla](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/hdouanla/32/14415_2.png) [@hdouanla](https://forum.ionicframework.com/u/hdouanla)\
**Post date:** [August 11, 2015, 9:34pm UTC](https://forum.ionicframework.com/t/ionicscrolldelegate-missing-handle-error/30260/2 "2015-08-11T21:34:29Z")

</div>

I’ve tried the solution in the error message like this:

```
$timeout(function () {
    $ionicScrollDelegate.$getByHandle('handle_' + category + '').scrollTop();
});

```

But no chance, same error message

---

<div class="post-metadata">

**Author:** ![lilbiscuit](https://avatars.discourse-cdn.com/v4/letter/l/f04885/32.png) [@lilbiscuit](https://forum.ionicframework.com/u/lilbiscuit)\
**Post date:** [August 17, 2015, 12:24pm UTC](https://forum.ionicframework.com/t/ionicscrolldelegate-missing-handle-error/30260/3 "2015-08-17T12:24:13Z")

</div>

This is a known issue with ionic going back to last year. Not fixed yet but there are some hacks: [https://github.com/driftyco/ionic/issues/2754](https://github.com/driftyco/ionic/issues/2754)

I haven’t gotten anything to work yet with my slide box in a modal.
