Skip to content

dharness/angular2-scroll-glue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angular2-scroll-glue

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

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>

About

Angular2 @component which automatically scrolls to the end of a div

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages