I need to know whether there is a way to refresh only the delete reply part without refreshing the whole component with ngOnInIt()
public deleteReply(commentId, replyId) {
this.isLoadingReplyDelete = true;
this.discussionService.deleteReply(commentId, replyId).takeWhile(() => this.alive)
.subscribe(returnObj => {
if (returnObj.status === 200) {
this.isLoadingReplyDelete = false;
this.ngOnInit();
}
});
}
}