1
|
/**
|
2
|
* @license
|
3
|
* Copyright Google Inc. All Rights Reserved.
|
4
|
*
|
5
|
* Use of this source code is governed by an MIT-style license that can be
|
6
|
* found in the LICENSE file at https://angular.io/license
|
7
|
*/
|
8
|
import { AbstractControlDirective } from './abstract_control_directive';
|
9
|
import { ControlValueAccessor } from './control_value_accessor';
|
10
|
import { AsyncValidatorFn, ValidatorFn } from './validators';
|
11
|
/**
|
12
|
* A base class that all control directive extend.
|
13
|
* It binds a {@link FormControl} object to a DOM element.
|
14
|
*
|
15
|
* Used internally by Angular forms.
|
16
|
*
|
17
|
* @stable
|
18
|
*/
|
19
|
export declare abstract class NgControl extends AbstractControlDirective {
|
20
|
name: string | null;
|
21
|
valueAccessor: ControlValueAccessor | null;
|
22
|
readonly validator: ValidatorFn | null;
|
23
|
readonly asyncValidator: AsyncValidatorFn | null;
|
24
|
abstract viewToModelUpdate(newValue: any): void;
|
25
|
}
|