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

Function noControlsError

packages/forms/src/directives/reactive_errors.ts:138–145  ·  view source on GitHub ↗
(isFormGroup: boolean)

Source from the content-addressed store, hash-verified

136}
137
138export function noControlsError(isFormGroup: boolean): string {
139 return `
140 There are no form controls registered with this ${
141 isFormGroup ? 'group' : 'array'
142 } yet. If you're using ngModel,
143 you may want to check next tick (e.g. use setTimeout).
144 `;
145}
146
147export function missingControlError(isFormGroup: boolean, key: string | number): string {
148 return `Cannot find form control ${describeKey(isFormGroup, key)}`;

Callers 1

assertControlPresentFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected