Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(fromClick) { this.subscription.off(); this.firstRun = true;}
- this.postFeed = new Array();
- this.subscription = this.database.database.ref('/posts/'+this.locationId)
- .orderByChild('created')
- .limitToLast(10);
- this.subscription.on('child_added', (snapshot) => {
- this.postFeed.push(snapshot.val());
- });
Add Comment
Please, Sign In to add comment