26 lines
425 B
JavaScript
Raw Normal View History

2015-02-05 14:09:26 -08:00
import {StringMapWrapper} from 'angular2/src/facade/collection';
export class Control {
value:any;
constructor(value:any) {
this.value = value;
}
}
export class ControlGroup {
controls;
constructor(controls) {
this.controls = controls;
}
get value() {
var res = {};
StringMapWrapper.forEach(this.controls, (control, name) => {
res[name] = control.value;
});
return res;
}
}