Jan 15 in Angular
Q: If your data model is updated outside the ‘Zone’, explain the process how will you the view?

1 Answer

Jan 15

You can update your view using any of the following:

ApplicationRef.prototype.tick(): It will perform change detection on the complete component tree. It will perform the change detection on the entire component tree. Here, the run() under the hood will call the tick itself and then parameter will take the function before tick and executes it.

ChangeDetectorRef.prototype.detectChanges(): It will launch the change detection on the current component and its children.

Click here to read more about Angular JS
Click here to read more about Insurance

Related questions

Jan 15 in Angular
May 23 in Python
Mar 3 in DevOps