How to add scroll to top in ionic


#1

Hello i want to add scroll to top in existing ionic app how can i achive that? TIA


#2

@sarveshamrit What version of the Ionic framework are you on?


#3

I am currently on Ionic v1.


#4

@luukschoen Can u help me in this topic sir?


#5

Yes, you should use $ionicScrollDelegate.scrollTop(); for that. Documentation regarding the $ionicScrollDelegate can be found over here:

http://ionicframework.com/docs/v1/api/service/$ionicScrollDelegate/