Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic
Created October 8, 2017 16:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NMZivkovic/bcc8c10a4ef5ef6f78d32c73f14780ef to your computer and use it in GitHub Desktop.
Save NMZivkovic/bcc8c10a4ef5ef6f78d32c73f14780ef to your computer and use it in GitHub Desktop.
<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