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

Function noop

packages/forms/src/directives/shared.ts:127–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125 validateControlPresenceOnChange: boolean = true,
126): void {
127 const noop = () => {
128 if (validateControlPresenceOnChange && (typeof ngDevMode === 'undefined' || ngDevMode)) {
129 _noControlError(dir);
130 }
131 };
132
133 // The `valueAccessor` field is typically defined on FromControl and FormControlName directive
134 // instances and there is a logic in `selectValueAccessor` function that throws if it's not the

Callers

nothing calls this directly

Calls 1

_noControlErrorFunction · 0.85

Tested by

no test coverage detected