angular - angular2 change detection with CD class -


how angular2 perform change detection default strategy ? have gone through post related change detection , got details 'angular2 creates change detector every component'.

now instance if i've 4 components (comp1, comp2 comp3 & comp4) , change comp4 property change detection perform through components or single component ?

can please provide code tutorial link related above info ?

here detailed article understand change detection:

also see this answer.

now instance if i've 4 components (comp1, comp2 comp3 & comp4) , change comp4 property change detection perform through components or single component ?

if change comp4 property result of async opertation settimeout, change detection run root level component , down children. have change detection components.

if of components set changedetectionstrategy.onpush, skipped if input bindings haven't changed.


Comments

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -