I am add a chat system in my ionic 3 app. I am working with Firebase realtime with angular 4, but here I can add orderByChild to fetch data from firebase database, it getting error. I am trying with this code.
this._chatSubscription = this.db.list("/chat").valueChanges().subscribe( data => { console.log(data); this.messages = data; });
Question and answer is powered by AnsPress.io