UNPKG

angular2

Version:

Angular 2 - a web framework for modern web apps

16 lines (15 loc) 551 B
import { ControlValueAccessor } from './control_value_accessor'; import { AbstractControlDirective } from './abstract_control_directive'; /** * A base class that all control directive extend. * It binds a {@link Control} object to a DOM element. * * Used internally by Angular forms. */ export declare abstract class NgControl extends AbstractControlDirective { name: string; valueAccessor: ControlValueAccessor; validator: Function; asyncValidator: Function; abstract viewToModelUpdate(newValue: any): void; }