MCPcopy Create free account
hub / github.com/angular/angular / isPropertyUpdated

Function isPropertyUpdated

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

Source from the content-addressed store, hash-verified

370}
371
372export function isPropertyUpdated(changes: {[key: string]: any}, viewModel: any): boolean {
373 if (!changes.hasOwnProperty('model')) return false;
374 const change = changes['model'];
375
376 if (change.isFirstChange()) return true;
377 return !Object.is(viewModel, change.currentValue);
378}
379
380export function isBuiltInAccessor(valueAccessor: ControlValueAccessor): boolean {
381 // 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