Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49167

Getting the controller for collection-repeat

$
0
0

@A_Burgess wrote:

So when using collection-repeat the normal $ionicScrollDelegate.getScrollPosition is not returning the correct values (top is always 0 on device and only the first 138ish pixels in chrome via ionic serve).

I have managed to debug all the scopes and found that $scope.$$childHead.scrollCtrl.getScrollPosition() is returning the correct values on every platform.

My question is: Is getting access via $scope.$$childHead.scrollCtrl the best and/or the only way?

Thanks.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49167

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>