Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<div class="col-sm-8">
<div class="row">
<div class="col-sm-2">
<label for="Name">Name</label>
</div>
<div class="col-sm-2">
<label for="Blog">Blog</label>
</div>
<div class="col-sm-2">
<label for="Age">Age</label>
</div>
<div class="col-sm-2">
<label for="Location">Location</label>
</div>
</div>
<div class="row" *ngFor="let user of users" (click)="setEditUser(user)">
<div class="col-sm-2">
{{user.name}}
</div>
<div class="col-sm-2">
{{user.blog}}
</div>
<div class="col-sm-2">
{{user.age}}
</div>
<div class="col-sm-2">
{{user.location}}
</div>
<div class="col-sm-2">
<button class="btn btn-default" (click)="deleteUser(user)">Delete</button>
</div>
</div>
<div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment