• Stars
    star
    2,903
  • Rank 15,638 (Top 0.4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 12 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Infinite Scrolling for AngularJS

Alternative project: Angular Material's md-virtual-repeat

Maintainer help needed: I'm looking for fellows that are willing to help me maintain and improve this project.


logo

Build Status

ngInfiniteScroll is a directive for AngularJS to evaluate an expression when the bottom of the directive's element approaches the bottom of the browser window, which can be used to implement infinite scrolling.

Demos

Check out the running demos at the ngInfiniteScroll web site.

Version Numbers

ngInfinite Scroll follows semantic versioning.

Getting Started

  • Install it with:

    • npm via npm install --save ng-infinite-scroll
  • Import ng-infinite-scroll and angular.

    import angular from 'angular';
    import ngInfiniteScroll from 'ng-infinite-scroll';
  • Ensure that your application module specifies ngInfiniteScroll as a dependency:

    const MODULE_NAME = 'myApplication';
    angular.module(MODULE_NAME, [ngInfiniteScroll]);
    export default MODULE_NAME;
  • Use the directive by specifying an infinite-scroll attribute on an element.

    <div infinite-scroll="$ctrl.myPagingFunction()" infinite-scroll-distance="3"></div>

Note that the directive does not use the ng prefix, as that prefix is reserved for the core Angular module.

Detailed Documentation

ngInfiniteScroll accepts several attributes to customize the behavior of the directive; detailed instructions can be found on the ngInfiniteScroll web site.

Ports

If you use AngularDart, Juha Komulainen has a port of the project you can use.

License

ngInfiniteScroll is licensed under the MIT license. See the LICENSE file for more details.

Testing

ngInfiniteScroll uses Protractor for testing. Note that you will need to have Chrome browser.

npm install
npm run test

Thank you very much @pomerantsev for your work on these Protractor tests.

Bower

While a Bower repo has been created for legacy use, it is still recommened to use npm and a module bundler (webpack, rollup, SystemJS) to use ng-infinite-scroll.

To install using bower:

bower install ngInfiniteScroll

More Repositories

1

companienv

Companion for .env files
PHP
248
star
2

messenger-enqueue-transport

Uses Enqueue with Symfony's Messenger component.
PHP
191
star
3

backbone-upload-manager

An upload manager written using Backbone.js
JavaScript
105
star
4

docker-compose-zsh-plugin

ZSH plugin that display status of project containers
Shell
48
star
5

SRIORestUploadBundle

A symfony bundle to handle multiple upload ways on your REST API.
PHP
46
star
6

live-twig

Adding realtime to Twig templates directly
PHP
34
star
7

PHP-Voronoi-algorithm

Steven Fortune's algorithm in PHP
PHP
31
star
8

api-platform-messenger

Uses API Platform to exposes Commands & Queries dispatched to your Symfony Messenger bus
PHP
31
star
9

ChainOfResponsibility

A light library that simplify the implementation of a chain of responsibility
PHP
24
star
10

kubernetes-client

PHP client for the Kubernetes API
PHP
12
star
11

awesome-venturing

Awesome list of practices, tools and products especially useful in your startup adventure(s).
Ruby
11
star
12

angular-simple-model

Simple model layer for AngularJS applications
JavaScript
9
star
13

kubernetes-vamp-router

Vamp Router integration with Kubernetes
Go
9
star
14

ArgumentResolver

A PHP library to inject arguments to callables based on type hints and arguments' names
PHP
9
star
15

enqueue-bridge

Enqueue bridge for Symfony's Messenger component
8
star
16

fossil

🚧 Fossil is an horizontally scalable event store build on top of a key-value store.
Go
6
star
17

api-platform-messenger-example

API Platform + Symfony Messenger example
PHP
5
star
18

openwhisk-bundle

PHP
5
star
19

tsuru-php-example

PHP Silex application example that run on a Tsuru cluster
PHP
4
star
20

HipacheClient

PHP implementation of an Hipache client
PHP
4
star
21

messenger-workshop

Messenger workshop
PHP
3
star
22

flynn-php-example

Example of PHP application that runs on Flynn
PHP
3
star
23

ngInfiniteScroll-bower

Bower package for ngInfiniteScroll
JavaScript
3
star
24

dockerfiles

My Docker files & composes
Dockerfile
3
star
25

discoverd-client

PHP client of Flynn Discoverd
PHP
3
star
26

message

Symfony Message component split
PHP
2
star
27

backbone.realtime-models

A backbone models and collection realtime synchronization system based on WebSockets (in development)
JavaScript
2
star
28

logstream-client

PHP LogStream client
PHP
2
star
29

SocialShareBundle

Share content on multiple social network at the same time from your Symfony2 application.
PHP
2
star
30

backbone-file-browser

A backbone file browser. (still in development)
JavaScript
2
star
31

live-twig-example

PHP
2
star
32

tsuru-environment

Run Tsuru in a Docker container
ApacheConf
1
star
33

events

PHP
1
star
34

kubernetes-load-balancer-proxifier

Load Balancer proxifier for Kubernetes
Go
1
star
35

PgSQL-parse_url

Librairie parse_url pour PostgreSQL
1
star
36

api-platform-workshop

PHP
1
star
37

miniwiki

MiniWiki created for 24h info 2012
PHP
1
star
38

landing-page

JavaScript
1
star
39

angular-cordova-file

AngularJS module that helps file integration with Apache Cordova
JavaScript
1
star
40

jquery-plugin-vinlinedit

Inline edit with vi style for jQuery
JavaScript
1
star
41

PHP-Gettext-Edit

PHP Gettext files editor
PHP
1
star
42

backbone-defered-view-loader

A backbone view overlay that loads view only when needed
JavaScript
1
star