@ -158,7 +158,7 @@ export class NgForm extends ControlContainer implements Form {
|
||||
}
|
||||
|
||||
_findContainer(path: string[]): ControlGroup {
|
||||
ListWrapper.removeLast(path);
|
||||
path.pop();
|
||||
return ListWrapper.isEmpty(path) ? this.form : <ControlGroup>this.form.find(path);
|
||||
}
|
||||
|
||||
|
@ -141,7 +141,7 @@ export class NgFormModel extends ControlContainer implements Form,
|
||||
}
|
||||
|
||||
_updateDomValue() {
|
||||
ListWrapper.forEach(this.directives, dir => {
|
||||
this.directives.forEach(dir => {
|
||||
var ctrl: any = this.form.find(dir.path);
|
||||
dir.valueAccessor.writeValue(ctrl.value);
|
||||
});
|
||||
|
Reference in New Issue
Block a user