New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sisisin/ng-infinite-scroll

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sisisin/ng-infinite-scroll

Simple infinit scroll component for Angular(version 2 or more).

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Simple infinit scroll component for Angular(version 2 or more).

Usage

First, install package.

$ npm install -S @sisisin/ng-infinite-scroll

And import into your NgModule.

import { NgModule } from '@angular/core';

@NgModule({
  imports: [InfiniteScrollModule],
})
export class AppModule { }

Last, using your component.

@Component({
  selector: 'my-app',
  template: `
<div style="height: 300px; width: 300px;">
  <infinite-scroll [onAdd]="onAdd" [loadHeight]="40">
    <div items *ngFor="let num of nums">{{num}}</div>
    <div loading>now loading...</div>
  </infinite-scroll>
</div>`,
})
export class AppComponent {
  onAdd = () => {
    // on add action.
    // you can return Promise | Observable
  }
}

Example

$ cd example/
$ npm install # NOTE: Don't use yarnpkg. see issue: https://github.com/yarnpkg/yarn/issues/685
$ npm run build && npm run serve

License

MIT

FAQs

Package last updated on 04 Mar 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc