Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. return new Promise(resolve => {
  2.  
  3. this.dataProvider.getProducts().subscribe((products) => {
  4. this.start;
  5. this.products = products;
  6. this.AKey = products.pop().$key;
  7.  
  8. console.log(products);
  9. for(let person of products) {
  10. this.people.push(person);
  11. }
  12.  
  13. resolve(true);
  14.  
  15. });
  16.  
  17. });
  18.  
  19. doInfinite(infiniteScroll:any) {
  20. console.log('doInfinite, start is currently '+this.start);
  21. this.start+=50;
  22.  
  23. this.loadPeople().then(()=>{
  24. infiniteScroll.complete();
  25. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement