July 2018
Intermediate to advanced
420 pages
8h 46m
English
In Chapter 7, Progressive Web Applications with Angular-cli, we already added the HTML markup for all of the app's views/templates, however, we need to add the Angular bindings and models to templates so that everything works correctly:
Open ./Client/src/app/auth/login/login.component.html.
Add the following bind function to tag:
(ngSubmit)="onSubmit(loginForm)" #loginForm="ngForm"
Now, we will add the ngModel to the email and password input, while we're still in ./Client/src/app/auth/login/login.component.html.
Add the following code to the email input:
<input type="email" [(ngModel)]="user.email" name="email" #email="ngModel" class="form-control" id="email" aria-describedby="emailHelp" ...
Read now
Unlock full access