angular-scroll-to-top
No Dependency Scroll To Top Component for angular 1
Installation
$ npm install angular-scroll-to-top
-Include the src and css file For example:
es6
```javascript import 'angular-scroll-to-top/scrollToTop'; ```-Then include the module into your angular app:
angular;
-And finally include the component somewhere in the app via HTML:
Implementation:
All logic is contained in isolate scope, Standard javascript + CSS are used for the animations and scrolling.
The only Dependency injections are $window and $scope into the components scope.
Development
Want to contribute? Great!
Todos
- Write Tests
- Improve look of scroll icon
- Add Code Comments
- Add Night Mode
License
MIT
Free Software, Hell Yeah!