In @ionic/angular I could see we are running the property set and methods outside Angular (using zone.runOutsideAngular).
/angular/src/directives/angular-component-lib/utils.ts
With methods I could see this will help, i.e. when we trigger a element method with some async operations it trigger Angular change detection continuously.
E.g.
select() {
setInterval(() => { console.log(‘Hello world’); }, 1000);
}
I could see tin the above case method call is generating only one Change Detection. But I am not able to find a scenario where property set we need to runOutsideAngular.
set(val: any) {
this.z.runOutsideAngular(() => (this.el[item] = val));
}
Anyone could point me to a use case where we need to run the property set outside Angular?