demos(docs): ng-if to ngIf

This commit is contained in:
Drew Rygh
2016-01-07 10:05:01 -06:00
parent 959025fee1
commit c695591fed
6 changed files with 10 additions and 10 deletions

View File

@ -14,13 +14,13 @@ import {Geolocation} from 'ionic/ionic';
<h2>Geolocation</h2>
<button primary outline (click)="doGetLocation()">Get Location</button>
<div>
<b *ng-if="gettingLocation">Fetching location...</b>
<b *ng-if="location">{{location.coords.latitude}}, {{location.coords.longitude}}</b>
<b *ngIf="gettingLocation">Fetching location...</b>
<b *ngIf="location">{{location.coords.latitude}}, {{location.coords.longitude}}</b>
</div>
<button primary outline (click)="doTrackLocation()">Track Location</button>
<div>
<b *ng-if="gettingTrackLocation">Fetching location...</b>
<b *ng-if="trackLocation">{{trackLocation.coords.latitude}}, {{trackLocation.coords.longitude}}</b>
<b *ngIf="gettingTrackLocation">Fetching location...</b>
<b *ngIf="trackLocation">{{trackLocation.coords.latitude}}, {{trackLocation.coords.longitude}}</b>
</div>
</ion-content>
`