Angular JS ScrollToTop Button
Requirements: Angular 1.4+
- Create a button only visible after scrolling down
- With click on button, screen scrolls to the top
$ bower install hover-scroll-to-top --save
please use either the minified or unminified file in the build
directory
To start add the require the lib as a dependency for your angular app:
angular.module('myApp', ['scrollToTop']);
<a href='#' scrolltotop> Scroll To Top </a>
Best usage is with the lib Font Awesome
<a href='#' scrolltotop>
<i class="fa fa-4x fa-chevron-circle-up></i>
</a>