angular2-scroll-glue

1.0.7 • Public • Published

angular2-scroll-glue

Angular2 @Component which automatically scrolls to the end of a div on the addition of new elements inside the div.

Demo

Usage

Include the directive in the component

import ScrollGlue from 'angular2-scroll-glue'
 
@Component({
  selector: 'my-app',
  providers: [],
  template: template,
  directives: [ScrollGlue]
})

Add it to any vertically scrollable element in your templete

  <div scroll-glue>
    <ul>
      <li *ngFor="#item of listItems">
        {{ item }}
      </li>
    </ul>
  </div>

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.71latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.71
1.0.60
1.0.50
1.0.40
1.0.30
1.0.10
1.0.01

Package Sidebar

Install

npm i angular2-scroll-glue

Weekly Downloads

2

Version

1.0.7

License

ISC

Last publish

Collaborators

  • kingofthestack