Skip to content

Commit

Permalink
Step 6.12: Add message editor to messages view template
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha authored and darkbasic committed Jun 13, 2017
1 parent eb1d8c0 commit c7f8586
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/pages/messages/messages.html
Expand Up @@ -23,3 +23,19 @@
</div>
</ion-scroll>
</ion-content>

<ion-footer>
<ion-toolbar color="whatsapp" class="messages-page-footer" position="bottom">
<ion-input [(ngModel)]="message" (keypress)="onInputKeypress($event)" class="message-editor" placeholder="Type a message"></ion-input>

<ion-buttons end>
<button ion-button icon-only *ngIf="message" class="message-editor-button" (click)="sendTextMessage()">
<ion-icon name="send"></ion-icon>
</button>

<button ion-button icon-only *ngIf="!message" class="message-editor-button">
<ion-icon name="mic"></ion-icon>
</button>
</ion-buttons>
</ion-toolbar>
</ion-footer>

0 comments on commit c7f8586

Please sign in to comment.