Add a scroll to top button (Ionic 2 | Typescript)


Hi everyone i am trying to add “scroll to top button.” that implement the following :

  1. Show the button when user has scrolled down.
  2. Hide the button when the user scrolls up.
    3 .If the button is tapped then scroll to the top and hide the button .

any suggestion for how make it right way?

thanks a lot :slight_smile:


I didn’t try myself, but the APIs you need resides in ion-content compoent