Skip to content

Commit 24c6fa7

Browse files
author
Jason Watmore
committed
fixed typo in registration form
1 parent 27b77e4 commit 24c6fa7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/register/register.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<div class="col-md-6 col-md-offset-3">
22
<h2>Register</h2>
33
<form name="form" (ngSubmit)="f.form.valid && register()" #f="ngForm" novalidate>
4-
<div class="form-group" [ngClass]="{ 'has-error': f.submitted && !username.valid }">
4+
<div class="form-group" [ngClass]="{ 'has-error': f.submitted && !firstName.valid }">
55
<label for="firstName">First Name</label>
66
<input type="text" class="form-control" name="firstName" [(ngModel)]="model.firstName" #firstName="ngModel" required />
77
<div *ngIf="f.submitted && !firstName.valid" class="help-block">First Name is required</div>
88
</div>
9-
<div class="form-group" [ngClass]="{ 'has-error': f.submitted && !username.valid }">
9+
<div class="form-group" [ngClass]="{ 'has-error': f.submitted && !lastName.valid }">
1010
<label for="lastName">Last Name</label>
1111
<input type="text" class="form-control" name="lastName" [(ngModel)]="model.lastName" #lastName="ngModel" required />
1212
<div *ngIf="f.submitted && !lastName.valid" class="help-block">Last Name is required</div>

0 commit comments

Comments
 (0)