Install The Best Scrolltop In Angular - ngx-scrolltop - The Easiest Way!

Author SKS
Author: SKS
Published on: Jun 25, 2024
Last updated: Jun 25, 2024
blog picture

Automatically (recommended)

ng add ngx-scrolltop

In app.component.html you just need to add your new button. Usually at the end of file:

<ngx-scrolltop></ngx-scrolltop>

For other options check this out: 

ngx-scrolltop - npm (npmjs.com)

Advanced example:

<ngx-scrolltop
  [size]="50"
  backgroundColor="#33691e"
  symbolColor="#fff"
  symbol="↑"
  mode="smart"
  position="left"
  theme="pink"
>
</ngx-scrolltop>

 

 

 

✌️
💩
❤️‍🔥
🤔

Support me if you want!

Your support keeps me motivated to provide more helpful content. ❤️