An open API service indexing awesome lists of open source software.

https://github.com/meepobrother/meepo-xscroll

xcroll for angular
https://github.com/meepobrother/meepo-xscroll

angular xscroll

Last synced: 2 months ago
JSON representation

xcroll for angular

Awesome Lists containing this project

README

          

# xscroll for angular

```ts
import { XscrollModule } from 'meepo-xscroll';
@NgModule({
imports: [
XscrollModule.forRoot()
]
})
export class AppModule { }

```

```html





{{item}}







{{item}}





```

```ts
export class AppComponent implements OnInit {
items: any[] = [];
constructor(
public cd: ChangeDetectorRef
) { }
ngOnInit() {
for (let i = 0; i < 10; i++) {
this.items.push(i);
}
}

onRefresh(e: any) {
this.items = [];
for (let i = 0; i < 10; i++) {
this.items.push(i);
}
e.next();
}

onLoad(e: any) {
let len = this.items.length;
for (let i = len; i < len + 10; i++) {
this.items.push(i);
}
e.next();
}
}

```