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

Function _throwInvalidValueAccessorError

packages/forms/src/directives/shared.ts:362–369  ·  view source on GitHub ↗
(dir: AbstractControlDirective)

Source from the content-addressed store, hash-verified

360}
361
362function _throwInvalidValueAccessorError(dir: AbstractControlDirective) {
363 const loc = _describeControlLocation(dir);
364 throw new RuntimeError(
365 RuntimeErrorCode.NG_VALUE_ACCESSOR_NOT_PROVIDED,
366 `Value accessor was not provided as an array for form control with ${loc}. ` +
367 `Check that the \`NG_VALUE_ACCESSOR\` token is configured as a \`multi: true\` provider.`,
368 );
369}
370
371export function isPropertyUpdated(changes: {[key: string]: any}, viewModel: any): boolean {
372 if (!changes.hasOwnProperty('model')) return false;

Callers 1

selectValueAccessorFunction · 0.85

Calls 1

_describeControlLocationFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…