Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (15 sloc) 696 Bytes
<form>
<div class="form-group">
<label for="inputId">ID</label>
<input #id type="number" class="form-control" id="inputId" placeholder="Enter ID">
</div>
<div class="form-group">
<label for="inputFirstName">First name</label>
<input #firstname type="text" class="form-control" id="inputFirstName" placeholder="First name">
</div>
<div class="form-group">
<label for="inputLastName">First name</label>
<input #lastname type="text" class="form-control" id="inputLastName" placeholder="Last name">
</div>
</form>
<button class="btn btn-success" (click)="addPerson(id.value, firstname.value, lastname.value)">Add Person</button>