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="insertUser">Insert User:</label>
<input class="form-control" type="text" placeholder="Name" [(ngModel)]="this.newUser.name" [ngModelOptions]="{standalone: true}"/>
<input class="form-control" type="text" placeholder="Blog" [(ngModel)]="this.newUser.blog" [ngModelOptions]="{standalone: true}"/>
<input class="form-control" type="text" placeholder="Age" [(ngModel)]="this.newUser.age" [ngModelOptions]="{standalone: true}"/>
<input class="form-control" type="text" placeholder="Location" [(ngModel)]="this.newUser.location" [ngModelOptions]="{standalone: true}"/>
<button class="btn btn-default" (click)="insertNewUser()"> Insert User </button>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment