MCPcopy
hub / github.com/angular/angular / applyChanges

Function applyChanges

packages/core/src/render3/util/change_detection_utils.ts:26–30  ·  view source on GitHub ↗
(component: {})

Source from the content-addressed store, hash-verified

24 * @publicApi
25 */
26export function applyChanges(component: {}): void {
27 ngDevMode && assertDefined(component, 'component');
28 markViewDirty(getComponentViewByInstance(component), NotificationSource.DebugApplyChanges);
29 getRootComponents(component).forEach((rootComponent) => detectChanges(rootComponent));
30}
31
32/**
33 * Synchronously perform change detection on a component (and possibly its sub-components).

Callers

nothing calls this directly

Calls 6

assertDefinedFunction · 0.90
markViewDirtyFunction · 0.90
getRootComponentsFunction · 0.90
detectChangesFunction · 0.70
forEachMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…