Updating user.component.html

Here is the component template for the user component:

<form class="form-inline" (submit) = "addUser($event)"><div class="form-row"><div class="col"><input type="text" class="form-control" [(ngModel)] ="name" name="name"></div><div class="col"><input type="text" class="form-control" [(ngModel)] ="email" name="email"></div><div class="col"><input type="text" class="form-control" [(ngModel)] ="phone_number" name="phone_number"></div></div> <br><button class="btn btn-primary" type="submit" (click) = "addUser($event)"><h4>Add User</h4></button></form><table class="table table-striped" ><thead><tr><th>Name</th><th>Email</th><th>Phone_Number</th><th>Active</th></tr></thead><tbody *ngFor="let user of users"><tr><td>{{user.name}}</td> ...

Get TypeScript 2.x for Angular Developers now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.