Ideas for further enhancements
The very first thing you may want to do in your application is sort messages by their creation date. You already know how to filter messages by group name. Feel free to update this code in order to assign the created date property to now each time you create and send a new message to the server.
Next, you can update the list query to order messages by date. You can find out more about this at https://github.com/angular/angularfire2/blob/master/docs/rtdb/querying-lists.md.
Another essential feature is to preserve the sender's information. You should retrieve the current username from the authentication layer and save it as part of the message object. By doing this, you can display author names in the user interface. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access