Lazy load Firebase
问题 I'm creating a chat app in Angular 4 which stores and reads messages in and from the Firebase database. I've written a query to retrieve only the latest 10 messages of that specific conversation. this.messages = this.db.list('messages/' + conversationId, { query: { limitToLast: 10 } }); db: AngularFireDatabase, messages: FirebaseListObservable Now I want to retrieve the 10 older messages when somene presses the 'more' button (or scrolls to the top) and I'm having difficulties writing a query