I've got a GameStats Object of my self defined interface. If I change the value of a attribute the child component doesn't recognize it. I found solutions with ngOnChanges which doesn't get fired, and with ngDoCheck which still contains the old values.
My example code:
app.component.html
<app-settings [gameStats]="gameStats"></app-settings>
app.component.ts (update attribute)
onRunningStatusChanged(event: any) {
this.gameStats.gameRunning = event;
}
settings.component.ts
@Input() gameStats!: GameStats;