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

Function isPropertyUpdated

packages/forms/src/directives/shared.ts:371–377  ·  view source on GitHub ↗
(changes: {[key: string]: any}, viewModel: any)

Source from the content-addressed store, hash-verified

369}
370
371export function isPropertyUpdated(changes: {[key: string]: any}, viewModel: any): boolean {
372 if (!changes.hasOwnProperty('model')) return false;
373 const change = changes['model'];
374
375 if (change.isFirstChange()) return true;
376 return !Object.is(viewModel, change.currentValue);
377}
378
379export function isBuiltInAccessor(valueAccessor: ControlValueAccessor): boolean {
380 // Check if a given value accessor is an instance of a class that directly extends

Callers 3

ngOnChangesMethod · 0.90
ngOnChangesMethod · 0.90
ngOnChangesMethod · 0.90

Calls 1

isFirstChangeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…