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

Function _describeControlLocation

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

Source from the content-addressed store, hash-verified

346}
347
348function _describeControlLocation(dir: AbstractControlDirective): string {
349 const path = dir.path;
350 if (path && path.length > 1) return `path: '${path.join(' -> ')}'`;
351 if (path?.[0]) return `name: '${path}'`;
352 return 'unspecified name attribute';
353}
354
355function _throwMissingValueAccessorError(dir: AbstractControlDirective) {
356 const loc = _describeControlLocation(dir);

Callers 3

_throwErrorFunction · 0.85

Calls 1

joinMethod · 0.65

Tested by

no test coverage detected