How to check if Ion-View has updated or changed

React has a lifecycle called ComponentWillUpdate, it basically checks if the content of a component has changed, How do I check for this in Ionic?

I need it for debugging purposes, is there any way I can monitor the data changes within a component in Angular/Ionic?

Normally the data-binding happens instantly, so no debugging would be necessary.
Can you give an example where debugging would be necessary?

1 Like

https://angular.io/guide/lifecycle-hooks

ngOnChanges lifecycle hook may be your best bet

Plse note that angular lifecycle hooks follow a different implementation as compared to ionic lifecycle hooks

And also I am interested in the use case.

And react people interested in angular may want to go through the getting started stuff at angular.io

1 Like