Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
booklist-component.html
<div class="ui middle aligned selection divided list">
<a *ngFor="let book of books" class="item">
<img class="ui tiny image"
*ngIf="book.images"
[src]="book.images[0].url">
<div class="content">
<div class="header">{{ book.title }}</div>
<div class="description"> {{ book.subtitle }} </div>
<div class="metadata">
<span *ngFor="let author of book.authors; last as l">
{{ author.firstName }} {{ author.lastName }}<span *ngIf="!l">, </span>
</span>
</div>
<div class="extra">ISBN {{ book.isbn }}</div>
</div>
</a>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.