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:
- angular’s $digest reborn in newer version of angular
- everything need know change detection in angular
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
Post a Comment