I\'m trying to test out Firebase to allow users to post comments using push. I want to display the data I retrieve with the following;
push
fbl.child
just use reverse() on the array , suppose if you are storing the values to an array items[] then do a this.items.reverse()
reverse()
items[]
this.items.reverse()
ref.subscribe(snapshots => { this.loading.dismiss(); this.items = []; snapshots.forEach(snapshot => { this.items.push(snapshot); }); **this.items.reverse();** },