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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -