I have created an Angular application which allows users to comment on a particular media file (like video). When a comment is posted, it makes a http POST call which stores the comment in the database.
While loading the component, ngOnInit loads all the comments from the database by making a http GET call. But, the comments doesn't get updated without refreshing the page when a new comment is posted. Is their a way to update the comments list without refreshing the page when a comment is posted?