
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
ng-infinite-scroll
Advanced tools
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.
Check out a running demo at the ngInfiniteScroll web site.
ngInfinite Scroll follows semantic versioning and uses the following versioning scheme:
The download page allows you to pick among various versions and specify which releases are stable (not including pre-release builds).
Download ngInfiniteScroll from the download page on the ngInfiniteScroll web site
Include the script tag on your page
<script type='text/javascript' src='path/to/ng-infinite-scroll.min.js'></script>
Ensure that your application module specifies infinite-scroll
as a dependency:
angular.module('myApplication', ['infinite-scroll']);
Use the directive by specifying an infinite-scroll
attribute on an element.
<div infinite-scroll="myPagingFunction()" infinite-scroll-distance="3"></div>
Note that neither the module nor the directive use the ng
prefix, as that prefix is reserved for the core Angular module.
ngInfiniteScroll accepts several attributes to customize the behavior of the directive; detailed instructions can be found on the ngInfiniteScroll web site.
ngInfiniteScroll is licensed under the MIT license. See the LICENSE file for more details.
ngInfiniteScroll uses Testacular for its unit tests. Note that you will need PhantomJS on your path, and the grunt-cli
npm package installed globally if you wish to use grunt (npm install -g grunt-cli
). Then, install the dependencies with npm install
.
grunt test
- continually watch for changes and run tests in PhantomJS and Chromenpm test
- run tests once in PhantomJS onlyFAQs
Infinite scrolling for AngularJS
The npm package ng-infinite-scroll receives a total of 31,426 weekly downloads. As such, ng-infinite-scroll popularity was classified as popular.
We found that ng-infinite-scroll demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.