Директива AbstractControlDirective
Stable Class
Обзор класса
class AbstractControlDirective {
control : AbstractControl
value : any
valid : boolean
invalid : boolean
pending : boolean
errors : {[key: string]: any}
pristine : boolean
dirty : boolean
touched : boolean
untouched : boolean
disabled : boolean
enabled : boolean
statusChanges : Observable<any>
valueChanges : Observable<any>
path : string[]
reset(value?: any) : void
hasError(errorCode: string, path?: string[]) : boolean
getError(errorCode: string, path?: string[]) : any
}
Описание класса
Базовый класс для директив управления.
Используется только внутри модуля форм.
Подробности класса
control : AbstractControl
value : any
valid : boolean
invalid : boolean
pending : boolean
errors : {[key: string]: any}
pristine : boolean
dirty : boolean
touched : boolean
untouched : boolean
disabled : boolean
enabled : boolean
statusChanges : Observable<any>
valueChanges : Observable<any>
path : string[]
reset(value?: any) : void
hasError(errorCode: string, path?: string[]) : boolean
getError(errorCode: string, path?: string[]) : any
экспортировано из @angular/forms/index, определено в @angular/forms/src/directives/abstract_control_directive.ts
© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v2.angular.io/docs/ts/latest/api/forms/index/AbstractControlDirective-class.html