ng2-backtop
Backtop-Angular2 Directive/Component
This is a Backtop Directive/Component for Angular 2.
GitHub
Please fell free to declare issues or contribute : https://github.com/psykolm22/ng2-backtop
Prerequies
FontAwesome : http://fontawesome.io/
Installation
npm i --save ng2-backtop
Usage
- in your app.component.html :
- Add BacktopModule in your app.module.ts:
; @
Options
Options for Backtop
- Choose speed to scroll top : example : 100(very fast) - 10000(very slow)
scrollspeed = 600 (default)
- buttontheme CSS Style : choose to ligth or dark or create your own theme based on ng2-backtop.css
buttontheme = ligth
Tested in:
- Chrome
- Firefox
- Safari