You can subscribe to an event in your component. I donβt know how to integrate this code with you, but in my opinion it looks like this:
ngOnInit() {
this._events.xyz.onDataChange.subscribe (() => {
this.onDataChange();
}
onDataChange() {
// Display to HTML Template
}
And then when your data changes, you use
this._events.xyz.onDataChange().publish()
TypeScript, , angular.
.