Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<div class="form-group col-sm-2">
<label for="editUser">Edit User:</label>
<input class="form-control" type="text" placeholder="Name" [(ngModel)]="this.editUser.name" [ngModelOptions]="{standalone: true}"/>
<input class="form-control" type="text" placeholder="Blog" [(ngModel)]="this.editUser.blog" [ngModelOptions]="{standalone: true}"/>
<input class="form-control" type="text" placeholder="Age" [(ngModel)]="this.editUser.age" [ngModelOptions]="{standalone: true}"/>
<input class="form-control" type="text" placeholder="Location" [(ngModel)]="this.editUser.location" [ngModelOptions]="{standalone: true}"/>
<button class="btn btn-default" (click)="updateUser()"> Edit User </button>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment