fix(form): Form directives are exportedAs 'ngForm' (was 'form')

fixes #5658

BREAKING CHANGE:

Before:

    <form #f="form">

After:

    <form #f="ngForm">

Closes #5709
This commit is contained in:
Victor Berchet
2015-12-08 11:17:39 -08:00
parent 80b025ae53
commit 8657ca4298
9 changed files with 15 additions and 15 deletions
@@ -968,7 +968,7 @@ export function main() {
// {{x.valid}} used to crash because valid() tried to read a property
// from form.control before it was set. This test verifies this bug is
// fixed.
var t = `<form><div ng-control-group="x" #x="form">
var t = `<form><div ng-control-group="x" #x="ngForm">
<input type="text" ng-control="test"></div>{{x.valid}}</form>`;
var fixture: ComponentFixture;
tcb.overrideTemplate(MyComp, t).createAsync(MyComp).then(
@@ -1072,4 +1072,4 @@ function sortedClassList(el) {
var l = DOM.classList(el);
ListWrapper.sort(l);
return l;
}
}