I am trying to pull data from external domain using angularjs. I dont see any issue in the console. I tried to my best and fiddled here. Any help or pointer would be great.
Vie Code
<div ng-controller="myCtrl">{{response}}
<button ng-click="getData()">GET Request</button>
</div>
Controller code
angular.module('myApp', [])
.controller('myCtrl', function ($scope, $http) {
$scope.getData = function () {
$http.get("http://api.openweathermap.org/data/2.5/weather?zip=98007,us").success(function (response) {
$scope.myData = response;
console.log(response)
});
};
});