2015-05-30 11:56:00 -07:00
|
|
|
import {ControlValueAccessor} from './control_value_accessor';
|
2015-07-07 15:53:16 -07:00
|
|
|
import {AbstractControlDirective} from './abstract_control_directive';
|
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-07-07 15:53:16 -07:00
|
|
|
export class NgControl extends AbstractControlDirective {
|
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-05-31 12:24:34 -07:00
|
|
|
|
|
|
|
viewToModelUpdate(newValue: any): void {}
|
2015-05-30 11:56:00 -07:00
|
|
|
}
|