1<div ng-app="myApp" ng-controller="customersCtrl">
2
3<table>
4 <tr ng-repeat="x in names">
5 <td>{{ x.Name }}</td>
6 <td>{{ x.Country }}</td>
7 </tr>
8</table>
9
10</div>
11
12<script>
13var app = angular.module('myApp', []);
14app.controller('customersCtrl', function($scope, $http) {
15 $http.get("customers_mysql.php")
16 .then(function (response) {$scope.names = response.data.records;});
17});
18</script>