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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user