ngOnChanges() executes whenever we change the value of input control in the component. Actually, this event is fired first when the value of a bound property is changed.