Hello,
I am trying to follow the following tutorials:
https://www.w3schools.com/angular/angular_tables.asp
<div ng-app="myApp" ng-controller="customersCtrl">
<table>
<tr ng-repeat="x in names">
<td>{{ x.Name }}</td>
<td>{{ x.Country }}</td>
</tr>
</table>
</div>
<script>
var app = angular.module('myApp', []);
app.controller('customersCtrl', function($scope, $http) {
$http.get("customers.php")
.then(function (response) {$scope.names = response.data.records;});
});
</script>
It produces a customer table. I wonder what is in customers.php to produces table like that? Since they do not show it in the tutorial.