https://github.com/librasean/angular-scroll-to-top
No Dependency Scroll To Top Component for angularjs
https://github.com/librasean/angular-scroll-to-top
angular component scrolling
Last synced: about 1 month ago
JSON representation
No Dependency Scroll To Top Component for angularjs
- Host: GitHub
- URL: https://github.com/librasean/angular-scroll-to-top
- Owner: librasean
- Created: 2017-02-09T00:07:54.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-09T01:12:30.000Z (over 9 years ago)
- Last Synced: 2026-01-23T11:49:19.551Z (5 months ago)
- Topics: angular, component, scrolling
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# angular-scroll-to-top
No Dependency Scroll To Top Component for angular 1
### Installation
```sh
$ npm install angular-scroll-to-top
```
-Include the src and css file
For example:
```html
```
<p><em>es6</em></p>
```javascript
import 'angular-scroll-to-top/scrollToTop';
```
-Then include the module into your angular app:
```javascript
angular.module('myApp',['scrollToTop']);
```
-And finally include the component somewhere in the app via HTML:
```html
<scroll-to-top></scroll-to-top>
```
###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!**