Scroll to top of the page onclick tab

I have a page with multiple tabs and scrollable content in it. So that if I scroll and go down on the page and if I click the tab, it should scroll to top of the page.
How can we do this.
Thanks in advance. :slight_smile:

define id = top to some element in tab and use following code to tab change


Thanks for the suggestion @baviskarmitesh.
I tried, but it did not work for me.

Because the default $ionicScrollDelegate of ionic work correctly using a button at bottom, but there is difficulty on click header tab and page scrolls up to top of the page.

Is there any another solution in ionic? :confused:

did you find that solution?