An open API service indexing awesome lists of open source software.

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

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!**