Is there a way to limit the number of inputs a child input in Angular receives before stopping further changes? For example, I want the child input to accept only 3 updates from ngOnChanges and then ignore any subsequent ones.
I am currently using an input count flag in the child component's ngOnChanges method. However, I am wondering if there is a better approach, either in the parent or in the child component itself, to achieve this limitation on input changes?
Potential Improvement
ngOnChanges() {
if (inputCount < 3) {
this.customerName = ....
this.product = ....
}