Skip to content

Commit

Permalink
Step 2.16: Use amCalendar pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha authored and DAB0mB committed Mar 23, 2017
1 parent 8468ffe commit 1d01386
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/chats/chats.html
Expand Up @@ -24,7 +24,7 @@ <h2 class="chat-title">{{chat.title}}</h2>

<span *ngIf="chat.lastMessage" class="last-message">
<p *ngIf="chat.lastMessage.type == 'text'" class="last-message-content last-message-content-text">{{chat.lastMessage.content}}</p>
<span class="last-message-timestamp">{{chat.lastMessage.createdAt }}</span>
<span class="last-message-timestamp">{{ chat.lastMessage.createdAt | amCalendar }}</span>
</span>
</div>
</button>
Expand Down

0 comments on commit 1d01386

Please sign in to comment.