Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>
- Test
- </title>
- <script src= "angular.min.js"></script>
- </head>
- <body>
- <div ng-app="" ng-controller="names">
- <table>
- <tr ng-repeat="x in name">
- <td>{{ x.nume }}</td>
- <td>{{ x.ocupatie }}</td>
- </tr>
- </table>
- </div>
- <script>
- function names($scope,$http) {
- $http.get("http://localhost/SiteKardinal/includes/nume.php")
- .success(function(response) {$scope.name= response;});
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement