feat(forms): added support for textarea

This commit is contained in:
vsavkin
2015-03-19 09:51:30 -07:00
parent 81312e4b3e
commit f42e6337b7
3 changed files with 23 additions and 2 deletions
@@ -83,8 +83,8 @@ class BrowserDomAdapter extends GenericBrowserDomAdapter {
void setText(Node el, String value) {
el.text = value;
}
String getValue(InputElement el) => el.value;
void setValue(InputElement el, String value) {
String getValue(el) => el.value;
void setValue(el, String value) {
el.value = value;
}
bool getChecked(InputElement el) => el.checked;
+2
View File
@@ -77,6 +77,8 @@ export class ControlDirective {
constructor(@Ancestor() groupDirective:ControlGroupDirective, el:NgElement) {
this._groupDirective = groupDirective;
this._el = el;
this.controlName = null;
this.type = null;
this.validator = validators.nullValidator;
}