export class AbstractControl
export class AbstractControl
exported from angular2/common defined in angular2/src/common/forms/model.ts (line 49)
Constructor
constructor(validator: Function, asyncValidator: Function)
constructor(validator: Function, asyncValidator: Function)
Not Yet Documented
Members
validator : Function
validator : Function
Not Yet Documented
asyncValidator : Function
asyncValidator : Function
Not Yet Documented
value : any
value : any
Not Yet Documented
status : string
status : string
Not Yet Documented
valid : boolean
valid : boolean
Not Yet Documented
errors : {[key: string]: any}
errors : {[key: string]: any}
Returns the errors of this control.
pristine : boolean
pristine : boolean
Not Yet Documented
dirty : boolean
dirty : boolean
Not Yet Documented
touched : boolean
touched : boolean
Not Yet Documented
untouched : boolean
untouched : boolean
Not Yet Documented
valueChanges : Observable<any>
valueChanges : Observable<any>
Not Yet Documented
statusChanges : Observable<any>
statusChanges : Observable<any>
Not Yet Documented
pending : boolean
pending : boolean
Not Yet Documented
markAsTouched() : void
markAsTouched() : void
Not Yet Documented
markAsDirty({onlySelf}?: {onlySelf?: boolean}) : void
markAsDirty({onlySelf}?: {onlySelf?: boolean}) : void
Not Yet Documented
markAsPending({onlySelf}?: {onlySelf?: boolean}) : void
markAsPending({onlySelf}?: {onlySelf?: boolean}) : void
Not Yet Documented
setParent(parent: ControlGroup | ControlArray) : void
setParent(parent: ControlGroup | ControlArray) : void
Not Yet Documented
updateValueAndValidity({onlySelf, emitEvent}?: {onlySelf?: boolean, emitEvent?: boolean}) : void
updateValueAndValidity({onlySelf, emitEvent}?: {onlySelf?: boolean, emitEvent?: boolean}) : void
Not Yet Documented
setErrors(errors: {[key: string]: any}, {emitEvent}?: {emitEvent?: boolean}) : void
setErrors(errors: {[key: string]: any}, {emitEvent}?: {emitEvent?: boolean}) : void
Sets errors on a control.
This is used when validations are run not automatically, but manually by the user.
Calling setErrors
will also update the validity of the parent control.
Usage
find(path: Array<string | number>| string) : AbstractControl
find(path: Array<string | number>| string) : AbstractControl
Not Yet Documented
getError(errorCode: string, path?: string[]) : any
getError(errorCode: string, path?: string[]) : any
Not Yet Documented
hasError(errorCode: string, path?: string[]) : boolean
hasError(errorCode: string, path?: string[]) : boolean
Not Yet Documented