{ "id": "api/forms/ControlContainer", "title": "ControlContainer", "contents": "\n\n
\n
\n
\n \n API > @angular/forms\n
\n \n
\n \n
\n

ControlContainerlink

\n \n \n \n \n \n
\n \n \n\n
\n \n
\n

A base class for directives that contain multiple registered instances of NgControl.\nOnly used by the forms module.

\n\n \n
\n \n \n \n
\n\nabstract class ControlContainer extends AbstractControlDirective {\n name: string | number | null\n formDirective: Form | null\n path: string[] | null\n\n // inherited from forms/AbstractControlDirective\n abstract control: AbstractControl | null\n value: any\n valid: boolean | null\n invalid: boolean | null\n pending: boolean | null\n disabled: boolean | null\n enabled: boolean | null\n errors: ValidationErrors | null\n pristine: boolean | null\n dirty: boolean | null\n touched: boolean | null\n status: string | null\n untouched: boolean | null\n statusChanges: Observable<any> | null\n valueChanges: Observable<any> | null\n path: string[] | null\n validator: ValidatorFn | null\n asyncValidator: AsyncValidatorFn | null\n reset(value: any = undefined): void\n hasError(errorCode: string, path?: string | (string | number)[]): boolean\n getError(errorCode: string, path?: string | (string | number)[]): any\n}\n\n\n \n \n
\n

Subclasseslink

\n \n\n\n\n\n
\n \n\n
\n\n\n \n\n \n \n \n\n\n\n\n\n\n\n\n
\n

Propertieslink

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
PropertyDescription
\n \n name: string | number | null\n \n \n

The name for the control

\n\n \n
\n \n formDirective: Form | null\n Read-Only\n \n

The top-level form directive for the control.

\n\n \n
\n \n path: string[] | null\n Read-Only\n \n

The path to this group.

\n\n \n
\n
\n\n\n\n\n\n \n\n\n
\n
\n\n\n" }