This commit is contained in:
Max Lynch
2015-07-02 09:34:20 -05:00
parent 05e406733e
commit e9e989ff49
3 changed files with 3 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
<div id="current-weather" *ng-if="current">
<div id="current-weather" *ng-if="current && current.currently">
<h5><weather-icon icon="current.icon" id="current-icon"></weather-icon> {{current.currently.summary}}</h5>
<h5>
<span id="temp-hi"><i class="icon ion-arrow-up-c"></i> <span ng-bind="highTemp"></span>&deg;</span>

View File

@@ -241,7 +241,7 @@ export class CurrentWeather {
console.log('ALL CHANGES DONE', current);
if(current) {
if(current && current.currently) {
if(units == 'f') {
this.currentTemp = Math.floor(current.currently.temperature);
} else {

View File

@@ -11,7 +11,7 @@
<ion-content>
<div id="main-content">
<current-weather></current-weather>
<current-weather [current]="current"></current-weather>
<forecast></forecast>
</div>
</ion-content>