Zones and change detection are an important part of Angular 2, and so it is important to our Ionic 2 application. I figured I understood what was happening at a surface level with change detection, but didn't really "get it". I decided to do a deep dive into some research to try and clarify my understanding, and this article is my attempt at summarising what I discovered by reading lots of articles by people smarter than me. This article aims to provide a simple introduction to Zones, and how they are important to change detection in Angular 2 and Ionic 2. What is Change Detection? Pascal Precht describes the task of change detection eloquently here: The basic task of change detection is to take the internal state of a program and make it somehow visible to the user interface. Another name for change detection is "dirty checking". Compared to Angular 1, change detection in Angular 2 seems like magic. Generally, something changes and Angular 2 just somehow knows about it and updates the view accordingly.
I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.
Stay tuned to my blog, twitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.
Stay tuned to my blog, twitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.
0 Comments