I am trying to implement an infinite scroll in Angular 2 and retrieving data from firebase. I am using an Observable but that is bringing all of the records I have in the database, the code for it is
getUsers(): Observable<any> {
return this.http.get(`${baseUrl}.json`).map((res: Response) => {
this.data = res.json();
return this.data;
});
}
for making bringing the data in chuncks I tried one of the Angular 1 implementations from the link
https://stackoverflow.com/a/40634381/5290012
and also tried implementing
using either is throwing errors saying that the properties do not exist on the
Property 'orderByChild' does not exist on type 'Observable'.
please suggest how I need to approach