While dynamically changing the props, ngOnChanges hook not triggered in angular 9 but it properly triggered in angular 7.
Please refer the below image, here we have used button name hidden click to changes the property.
In angular 7 the ngOnChanges hook are triggered properly from angular core level and I am getting changes from the changes parameter.
Angular 9: Same as angular 9, ngOnChanges hook not triggered. At the time of property changes,
Angular 7 sample: https://github.com/kumaresan-subramani/Angular_diagram_7 Angular 9 sample: https://github.com/kumaresan-subramani/Angular_diagram_9
- npm i
- ng serve
Then click button hidden to change the property, then you can reproduce the issue.