I am trying to retrieve realtime data from firebase using angular 4 in ionic 3. I am trying with this code but it getting error, “this.db.list(…).subscribe is not a function“.
My code:
this._chatSubscription = this.db.list("/chat/"+this.company+"/group_chat").subscribe( data => { this.messages = data; });
What can I do for it?
Question and answer is powered by AnsPress.io