On this page
ControlContainer
class
npm Package | @angular/forms |
---|---|
Module | import { ControlContainer } from '@angular/forms'; |
Source | forms/src/directives/control_container.ts |
Overview
class ControlContainer extends AbstractControlDirective {
name: string
get formDirective: Form|null
get path: string[]|null
// inherited from forms/AbstractControlDirective
get control: AbstractControl|null
get value: any
get valid: boolean|null
get invalid: boolean|null
get pending: boolean|null
get disabled: boolean|null
get enabled: boolean|null
get errors: ValidationErrors|null
get pristine: boolean|null
get dirty: boolean|null
get touched: boolean|null
get untouched: boolean|null
get statusChanges: Observable<any>|null
get valueChanges: Observable<any>|null
get path: string[]|null
reset(value: any = undefined): void
hasError(errorCode: string, path?: string[]): boolean
getError(errorCode: string, path?: string[]): any
}
Description
A directive that contains multiple NgControl
s.
Only used by the forms module.
Subclasses
AbstractFormGroupDirective
Members
name: string
get formDirective: Form|null
Get the form to which this container belongs.
get path: string[]|null
Get the path to this container.
© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v4.angular.io/api/forms/ControlContainer