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

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