2015-05-30 11:56:00 -07:00
|
|
|
import {ControlValueAccessor} from './control_value_accessor';
|
2015-06-03 11:56:01 -07:00
|
|
|
import {Control} from '../model';
|
2015-05-30 11:56:00 -07:00
|
|
|
|
2015-05-31 12:24:34 -07:00
|
|
|
/**
|
2015-06-11 09:58:53 -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
|
|
|
|
*/
|
2015-06-10 13:51:44 -07:00
|
|
|
export class NgControl {
|
2015-05-30 11:56:00 -07:00
|
|
|
name: string = null;
|
|
|
|
valueAccessor: ControlValueAccessor = null;
|
|
|
|
|
2015-06-17 14:45:40 -07:00
|
|
|
get validator(): Function { return null; }
|
2015-05-30 11:56:00 -07:00
|
|
|
get path(): List<string> { return null; }
|
2015-06-03 11:56:01 -07:00
|
|
|
get control(): Control { return null; }
|
2015-05-31 12:24:34 -07:00
|
|
|
|
|
|
|
viewToModelUpdate(newValue: any): void {}
|
2015-05-30 11:56:00 -07:00
|
|
|
}
|