Directive that adds animated scroll to top on click.
bower install clearcodeangularjs/cc-scrollToTopOnClickDive-directive --save
Add cc.scrollToTopOnClickDive.directive
module to your app module list :
angular
.module('yourAwesomeApp', [
'cc.scrollToTopOnClickDive.directive'
]);
and you are ready to go!
How to use :
<span scroll-to-top-on-click-dive>click to scroll to top!!</span>
Krzysztof Dukszta-Kwiatkowski
LGPL