Reverse messages in messages.component to make new messages appear first

This commit is contained in:
Kristóf Tóth 2018-02-14 09:51:42 +01:00
parent 4bb2e9c2f2
commit 1c499fd54b

View File

@ -1,6 +1,6 @@
<div>
<ul>
<li *ngFor="let message of messages">
<li *ngFor="let message of messages.reverse()">
<p>
<strong>{{message.originator}}</strong>
<span class="timestamp">{{message.timestamp | date:'yyyy-MM-dd HH:mm:ss'}}</span><br>