Skip to content Skip to sidebar Skip to footer

Angular Js Http Open Weather Map Example

arrays Getting JSON from Open Weather.. An example that gets JSON data from Open Weather Map: angular.module ('myApp').controller ('myVm', function ($scope, $http) { var vm = $scope; vm.lat=37, vm.lon=35; vm.getWeather = function (lat, lon) { console.log ("getWeather invoked with",lat,lon); if (vm.data == "pending") return ["pending"]; var url = 'http://api.openweathermap.

arrays Getting JSON from Open Weather.
arrays Getting JSON from Open Weather. from i.ytimg.com

Уеб  import { Injectable } from '@angular/core';.

Post a Comment for "Angular Js Http Open Weather Map Example"