Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Angular HTML UI for the Books component
<h1>Books</h1>
<p *ngIf="!books"><em>Loading...</em></p>
<table class='table' *ngIf="books">
<thead>
<tr>
<th>Id</th>
<th>Title</th>
<th>Publisher</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let book of books">
<td>{{ book.bookId }}</td>
<td>{{ book.title }}</td>
<td>{{ book.publisher }}</td>
</tr>
</tbody>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment