MCPcopy Index your code
hub / github.com/angular/angular / detectChanges

Function detectChanges

packages/core/src/render3/util/change_detection_utils.ts:39–43  ·  view source on GitHub ↗

* Synchronously perform change detection on a component (and possibly its sub-components). * * This function triggers change detection in a synchronous way on a component. * * @param component The component which the change detection should be performed on.

(component: {})

Source from the content-addressed store, hash-verified

37 * @param component The component which the change detection should be performed on.
38 */
39function detectChanges(component: {}): void {
40 const view = getComponentViewByInstance(component);
41 view[FLAGS] |= LViewFlags.RefreshView;
42 detectChangesInternal(view);
43}

Callers 1

applyChangesFunction · 0.70

Calls 2

detectChangesInternalFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…