I have a database in firebase like the image. I want to get data from the last value in a node in firebase. How i can do it with ionic 3. Thank alot.
public getLastToken(): FirebaseListObservable<any[]>{
return this._af.database.list('/tokens',{
query:{
limitToLast:1
}
});
}
This should work if you follow the tutorial, https://kieldev.wordpress.com/2017/04/28/firebase-real-time-database-using-angular-4-ionic-3/
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments