korhan-Ö
10/3/2016 - 12:21 PM

#Http.js

var app = angular.module('myApp', []);
app.controller('customersCtrl', function($scope, $http) {
    $http.get("http://www.w3schools.com/angular/customers.php")
    .success(function(response) {$scope.names = response.records;});
});

{ "records":[ {"Name":"Alfreds Futterkiste","City":"Berlin","Country":"Germany"}]};