Skip to content

Instantly share code, notes, and snippets.

@elmarputz
Created March 15, 2019 11:06
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 elmarputz/94a7b05c6e1fd741edc14052f17ca8f7 to your computer and use it in GitHub Desktop.
Save elmarputz/94a7b05c6e1fd741edc14052f17ca8f7 to your computer and use it in GitHub Desktop.
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