Client: add ID, score and created date to the friends list

pull/10/head
Chocobozzz 2016-08-26 18:59:17 +02:00
parent 535724234a
commit 8889736127
2 changed files with 9 additions and 0 deletions

View File

@ -3,13 +3,19 @@
<table class="table table-hover"> <table class="table table-hover">
<thead> <thead>
<tr> <tr>
<th>ID</th>
<th>Url</th> <th>Url</th>
<th>Score</th>
<th>Created Date</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr *ngFor="let friend of friends"> <tr *ngFor="let friend of friends">
<td>{{ friend.id }}</td>
<td>{{ friend.url }}</td> <td>{{ friend.url }}</td>
<td>{{ friend.score }}</td>
<td>{{ friend.createdDate }}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>

View File

@ -1,3 +1,6 @@
export interface Friend { export interface Friend {
id: string;
url: string; url: string;
score: number;
createdDate: Date;
} }