Skip to content

Commit

Permalink
add link to other post
Browse files Browse the repository at this point in the history
  • Loading branch information
juristr committed Apr 10, 2017
1 parent 37e7516 commit dec1b80
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion _posts/2016-04-07-angular2-change-detection.md
Expand Up @@ -19,6 +19,13 @@ tags: [ "JavaScript", "Angular" ]

Before starting, Angular has implemented an awesome and very refined mechanism for detecting changes. As always, Thoughtram has an interesting article on their blog ["Angular Change Detection Explained"](http://blog.thoughtram.io/angular/2016/02/22/angular-2-change-detection-explained.html) which goes deep into this topic and is definitely worth reading.

{% include article-link.html
url="/blog/2017/03/angular-tuning-change-detection/"
title="Tuning Angular's Change Detection"
text="Videos and runnable code examples that demonstrate different tuning techniques for Angular's change detection."
imageurl="/blog/assets/imgs/linkpics/angular2logo.svg"
%}

## The Setup

We basically have two components, an app (as usual) and a child component `<child>` (I know...how brilliant :wink:). The parent component simply passes along a data object `Person`:
Expand Down Expand Up @@ -206,4 +213,4 @@ Note, if you get a list as `@Input`, you can use [IterableDiffers](https://angul
Nice, so we learned..

- that `ngOnChanges` won't be triggered when we mutate a (non-immutable) JavaScript object. Instead it triggers only when **we reference-change the data-bound input property**.
- Also, we've seen that we can use `ngDoCheck` for such scenarios, that allows us to do a very fine-grained check of which property on our object changed.
- Also, we've seen that we can use `ngDoCheck` for such scenarios, that allows us to do a very fine-grained check of which property on our object changed.

0 comments on commit dec1b80

Please sign in to comment.