Hi Jean,

Actually, your sample does exactly what you want. However, if you use the 
ngDoCheck you are forcing a component to react on change detection! 
(actually, it does nothing aside from logging in your sample!) To get a 
feel on when actual change detaction is fired, you need to use ngOnChanges 
wich is only fired when changes for that component are detected! I forked 
your plunk with this change 
<http://plnkr.co/edit/eTDAfF78feKp0FFyTUNU?p=preview>. 

Hope this clarfies it enough for you.
Regards
Sander

-- 
You received this message because you are subscribed to the Google Groups 
"Angular" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to