Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <style>
- </style>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.7.8/angular.min.js"></script>
- <body>
- <div ng-app="country-output" ng-controller="controller">
- <table>
- <tr ng-repeat="i in data">
- <td>{{ i.Country }}</td>
- <td>{{ i.Name }}</td>
- </tr>
- </table>
- </div>
- <script>
- var app = angular.module('country-output', []);
- app.controller('controller', function($scope, $http){
- $http.get("https://www.w3schools.com/angular/customers.php").then(function (response){
- $scope.data = response.data.records;
- console.log(response.data);
- });
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement