From e9e989ff4902ab540be7c7f0f3a52321b8dcaf3f Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Thu, 2 Jul 2015 09:34:20 -0500 Subject: [PATCH] Weather --- ionic/components/app/test/weather/current-weather.html | 2 +- ionic/components/app/test/weather/index.js | 2 +- ionic/components/app/test/weather/main.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ionic/components/app/test/weather/current-weather.html b/ionic/components/app/test/weather/current-weather.html index 422e265ba9..66441e5425 100644 --- a/ionic/components/app/test/weather/current-weather.html +++ b/ionic/components/app/test/weather/current-weather.html @@ -1,4 +1,4 @@ -
+
{{current.currently.summary}}
° diff --git a/ionic/components/app/test/weather/index.js b/ionic/components/app/test/weather/index.js index 085d6e2dda..272823c47e 100644 --- a/ionic/components/app/test/weather/index.js +++ b/ionic/components/app/test/weather/index.js @@ -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 { diff --git a/ionic/components/app/test/weather/main.html b/ionic/components/app/test/weather/main.html index 615b07d5b2..aa57b70139 100644 --- a/ionic/components/app/test/weather/main.html +++ b/ionic/components/app/test/weather/main.html @@ -11,7 +11,7 @@
- +