Skip to content

Commit

Permalink
Step 4.9: Add messages to chat view
Browse files Browse the repository at this point in the history
  • Loading branch information
DAB0mB authored and Dotan Simha committed Nov 22, 2016
1 parent 94d5711 commit 780c0fc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions www/templates/chat.html
Expand Up @@ -2,4 +2,15 @@
<ion-nav-buttons side="right">
<button class="button button-clear"><img class="header-picture" ng-src="{{ chat.data.picture }}"></button>
</ion-nav-buttons>

<ion-content class="chat" delegate-handle="chatScroll">
<div class="message-list">
<div ng-repeat="message in chat.messages" class="message-wrapper">
<div class="message" ng-class-even="'message-mine'" ng-class-odd="'message-other'">
<div class="message-text">{{ message.text }}</div>
<span class="message-timestamp">{{ message.timestamp }}</span>
</div>
</div>
</div>
</ion-content>
</ion-view>

0 comments on commit 780c0fc

Please sign in to comment.