ng_infinite_scroll 0.0.1
ng_infinite_scroll: ^0.0.1 copied to clipboard
Infinite scroll component for AngularDart.
Infinite scroll for AngularDart #
Port of Brandon Tilley's ngInfiniteScroll for AngularDart.
Usage #
First, import the package and register the module:
import 'package:ng_infinite_scroll/ng_infinite_scroll.dart';
class MyModule extends Module {
MyModule() {
install(new InfiniteScrollModule());
}
}
Next, use the directive in your template:
<div infinite-scroll="ctrl.loadMore()" infinite-scroll-disabled="ctrl.loading" infinite-scroll-distance="3"></div>
See the documentation of ngInfiniteScroll for details.