Permalink
Browse files

Step 12.14: Added location message template

  • Loading branch information...
dotansimha authored and darkbasic committed Jan 24, 2017
1 parent d7199b9 commit 0101cf03e95b084f45390007ab31d55305553321
Showing with 22 additions and 0 deletions.
  1. +22 −0 src/pages/messages/location-message.html
@@ -0,0 +1,22 @@
<ion-header>
<ion-toolbar color="whatsapp">
<ion-title>Send Location</ion-title>
<ion-buttons end>
<button ion-button class="dismiss-button" (click)="viewCtrl.dismiss()"><ion-icon name="close"></ion-icon></button>
</ion-buttons>
</ion-toolbar>
</ion-header>
<ion-content class="location-message-content">
<ion-list>
<agm-map [latitude]="lat" [longitude]="lng" [zoom]="zoom">
<agm-marker [latitude]="lat" [longitude]="lng"></agm-marker>
</agm-map>
<ion-item (click)="sendLocation()">
<ion-icon name="compass" item-left></ion-icon>
<h2>Send your current location</h2>
<p *ngIf="accuracy !== -1">Accurate to {{accuracy}} meters</p>
</ion-item>
</ion-list>
</ion-content>

0 comments on commit 0101cf0

Please sign in to comment.