ngDoCheck event is triggered every time to check the input properties of a component. It allows us to implement our own change detection logic or algorithm for any component.