Skip to content

Instantly share code, notes, and snippets.

@christiannagel
Created July 17, 2018 13:49
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 christiannagel/e658ec2ee851683e655b10dd7ec08db1 to your computer and use it in GitHub Desktop.
Save christiannagel/e658ec2ee851683e655b10dd7ec08db1 to your computer and use it in GitHub Desktop.
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