সম্পাদনা
<!DOCTYPE html> <html ng-app="app"> <script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.8.3/angular.min.js"></script> <body> <div ng-controller="app"> <table border="1"> <tr> <th>ID</th> <th>নাম</th> <th>শহর</th> </tr> <tr ng-repeat="user in users"> <td>{{user.id}}</td> <td>{{user.name}}</td> <td>{{user.city}}</td> </tr> </table> </div> <script> angular.module("app", []) .controller("app", function($scope, $http) { $http.get("/api/users.php") .then(function(response) { $scope.users = response.data; }); }); </script> </body> </html>
পূর্বরূপ