Skip to content

Commit

Permalink
Step 1.14: Add data stub to chats view
Browse files Browse the repository at this point in the history
  • Loading branch information
DAB0mB authored and Dotan Simha committed Nov 23, 2016
1 parent 5629a58 commit dd1791a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion client/templates/chats.html
@@ -1,5 +1,15 @@
<ion-view view-title="Chats">
<ion-content>

<ion-list>
<ion-item ng-repeat="chat in chats.data | orderBy:'-lastMessage.timestamp'"
class="item-chat item-remove-animate item-avatar item-icon-right"
type="item-text-wrap">
<img ng-src="{{ chat.picture }}">
<h2>{{ chat.name }}</h2>
<p>{{ chat.lastMessage.text }}</p>
<span class="last-message-timestamp">{{ chat.lastMessage.timestamp }}</span>
<i class="icon ion-chevron-right icon-accessory"></i>
</ion-item>
</ion-list>
</ion-content>
</ion-view>

0 comments on commit dd1791a

Please sign in to comment.