Suppose I have component with
@Input() timeData: TimeData
where TimeData
contains only one field: time
.
I want to observe timeData.time
, assuming that only timeData.time
was changed (not the whole timeData
)
ngOnChanges
doesn't track such change, while {{timeData.time}}
works perfect.
My final goal is to set flag goodTime
if(timeData.time % 10 === 0){
goodTime = true
}