mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-01-16 05:31:56 +00:00
Reverse messages in messages.component to make new messages appear first
This commit is contained in:
parent
4bb2e9c2f2
commit
1c499fd54b
@ -1,6 +1,6 @@
|
|||||||
<div>
|
<div>
|
||||||
<ul>
|
<ul>
|
||||||
<li *ngFor="let message of messages">
|
<li *ngFor="let message of messages.reverse()">
|
||||||
<p>
|
<p>
|
||||||
<strong>{{message.originator}}</strong>
|
<strong>{{message.originator}}</strong>
|
||||||
<span class="timestamp">{{message.timestamp | date:'yyyy-MM-dd HH:mm:ss'}}</span><br>
|
<span class="timestamp">{{message.timestamp | date:'yyyy-MM-dd HH:mm:ss'}}</span><br>
|
||||||
|
Loading…
Reference in New Issue
Block a user