mirror of
				https://github.com/avatao-content/frontend-tutorial-framework
				synced 2025-11-04 12:22:54 +00:00 
			
		
		
		
	Reverse messages in messages.component to make new messages appear first
This commit is contained in:
		@@ -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>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user