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

View File

@ -78,7 +78,7 @@ class ShowError {
template: `
<h1>Checkout Form (Model Driven)</h1>
<form (ng-submit)="onSubmit()" [ng-form-model]="form" #f="form">
<form (ng-submit)="onSubmit()" [ng-form-model]="form" #f="ngForm">
<p>
<label for="firstName">First Name</label>
<input type="text" id="firstName" ng-control="firstName">