Is there a method to set up a callback that triggers every time the component is redrawn or re-rendered?
For example, can I track how many times the component has been updated on the DOM?
I have implemented OnPush
change detection.
@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'app-my-component',
templateUrl: './my-component.component.html',
styleUrls: ['./my-component.component.scss']
})
My understanding is that when the inputs to the component are modified, it automatically triggers a redraw of the component, correct?