21 lines
526 B
TypeScript
Raw Normal View History

import {ControlValueAccessor} from './control_value_accessor';
import {Control} from '../model';
2015-05-31 12:24:34 -07:00
/**
* An abstract class that all control directive extend.
*
* It binds a {@link Control} object to a DOM element.
2015-05-31 12:24:34 -07:00
*
* @exportedAs angular2/forms
*/
export class NgControl {
name: string = null;
valueAccessor: ControlValueAccessor = null;
get validator(): Function { return null; }
get path(): List<string> { return null; }
get control(): Control { return null; }
2015-05-31 12:24:34 -07:00
viewToModelUpdate(newValue: any): void {}
}