Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <style> table, th , td { border: 1px solid grey; border-collapse: collapse; padding: 5px; } table tr:nth-child(odd) { background-color: #f1f1f1; } table tr:nth-child(even) { background-color: #ffffff; } </style> <script src= "../../ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.min.js"></script> </head> <body> <div ng-app="" ng-controller="customersController"> <table> <tr ng-repeat="x in names"> <td>{{ x.Name }}</td> <td>{{ x.Country }}</td> </tr> </table> </div> <script> function customersController($scope,$http) { $http.get("../website/Customers_sql.html") .success(function(response) {$scope.names = response;}); } </script> </body> <!-- Mirrored from www.w3schools.com/angular/tryit.asp?filename=try_ng_customers_sql by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:30:46 GMT --> </html>
Result:
Try it Yourself - © w3schools.com