Skip to content

Commit 793c04c

Browse files
committed
style(book-list): add basic bootstrap table style
1 parent 4186a2f commit 793c04c

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed
Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
1-
<ul>
2-
<li *ngFor="let book of books | async">
3-
<a [routerLink]="[book.isbn]">{{book.title}}</a>
4-
</li>
5-
</ul>
1+
<table class="table table-striped">
2+
<thead>
3+
<tr>
4+
<th scope="col">Title</th>
5+
<th scope="col">ISBN</th>
6+
<th scope="col">Author</th>
7+
</tr>
8+
</thead>
9+
<tbody>
10+
<tr *ngFor="let book of books | async">
11+
<td><a [routerLink]="[book.isbn]">{{book.title}}</a></td>
12+
<td><a>{{book.isbn}}</a></td>
13+
<td><a>{{book.author}}</a></td>
14+
</tr>
15+
</tbody>
16+
</table>

0 commit comments

Comments
 (0)