Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- loadPeople() {
- return new Promise(resolve => {
- this.dataProvider.getProducts().subscribe((products) => {
- this.start;
- this.products = products;
- this.AKey = products.pop().$key;
- console.log(products);
- for(let person of products) {
- this.people.push(person);
- }
- resolve(true);
- });
- });
- }
- doInfinite(infiniteScroll:any) {
- console.log('doInfinite, start is currently '+this.start);
- this.start+=50;
- this.loadPeople().then(()=>{
- infiniteScroll.complete();
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement