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

Function getError

packages/forms/src/directives/abstract_control_directive.ts:331–333  ·  view source on GitHub ↗

* @description * Reports error data for the control with the given path. * * @param errorCode The code of the error to check * @param path A list of control names that designates how to move from the current control * to the control that should be queried for errors. * * @usageN

(errorCode: string, path?: Array<string | number> | string)

Source from the content-addressed store, hash-verified

329 * null is returned.
330 */
331 getError(errorCode: string, path?: Array<string | number> | string): any {
332 return this.control ? this.control.getError(errorCode, path) : null;
333 }
334}

Callers

nothing calls this directly

Calls 1

getErrorMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…