Created
December 15, 2014 05:57
-
-
Save argelius/c6a2f8d541dc8f9d0d37 to your computer and use it in GitHub Desktop.
Onsen weather sample app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// app.js | |
(function() { | |
'use strict'; | |
angular.module('app', ['onsen']) | |
// OpenWeatherMap API returns temperature in degrees Kelvin. | |
.filter('kelvinToCelsius', function() { | |
return function(kelvin) { | |
return parseFloat(kelvin) - 273.15; | |
}; | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment