<tr>
<th class="table-column-id">ID</th>
<th>Username</th>
+ <th>Created Date</th>
<th class="text-right">Remove</th>
</tr>
</thead>
<tr *ngFor="let user of users">
<td>{{ user.id }}</td>
<td>{{ user.username }}</td>
+ <td>{{ user.createdDate | date: 'medium' }}</td>
<td class="text-right">
<span class="glyphicon glyphicon-remove" *ngIf="!user.isAdmin()" (click)="removeUser(user)"></span>
</td>
id: string;
username: string;
role: string;
+ createdDate: Date;
- constructor(hash: { id: string, username: string, role: string }) {
+ constructor(hash: { id: string, username: string, role: string, createdDate: Date }) {
this.id = hash.id;
this.username = hash.username;
this.role = hash.role;
+ this.createdDate = hash.createdDate;
}
isAdmin() {