File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
< div class ="col-md-6 col-md-offset-3 ">
2
2
< h2 > Register</ h2 >
3
3
< 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 } ">
5
5
< label for ="firstName "> First Name</ label >
6
6
< input type ="text " class ="form-control " name ="firstName " [(ngModel)] ="model.firstName " #firstName ="ngModel " required />
7
7
< div *ngIf ="f.submitted && !firstName.valid " class ="help-block "> First Name is required</ div >
8
8
</ 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 } ">
10
10
< label for ="lastName "> Last Name</ label >
11
11
< input type ="text " class ="form-control " name ="lastName " [(ngModel)] ="model.lastName " #lastName ="ngModel " required />
12
12
< div *ngIf ="f.submitted && !lastName.valid " class ="help-block "> Last Name is required</ div >
You can’t perform that action at this time.
0 commit comments