Deprecated
Please use ngx-auto-scroll instead.
Angular 2 auto scroll directive
Installation
npm install angular2-auto-scroll
Usage
In component:
;
In template:
{{ message }}
Atribiutes:
Argument passed to lock-y-offset
is bottom offset of scroll position in pixels after scroll container stops auto scroll. Default value is 10.
observe-attributes
(optional, default - false) enable listening on attributes changes for example detect changes in font size.
Building
npm run build