i have this in my view so that the people go example, view/1 i get via restful all the data of that user and i parse that in html with a table, Im using cakephp,i don't want to use angularJS, there's a JQuery library that do that job, do you know the name?
<script>
var app = angular.module('myApp', []);
app.controller('customersCtrl', function($scope, $http) {
$http.get("/social/users.json")
.success(function (response) {$scope.users = response.users;});
});
</script>
then i receive this answer
{
"user": [
{
"id": 1,
"email": "email",
"name": "name",
"last_name": "last",
"username": "itsme",
"password":"password",
"created": "2015-09-21T16:44:47+0000",
"modified": "2015-09-21T16:52:08+0000"
}
]
}
how can i parse repeating this code and populate data in html?
<div ng-app="myApp" ng-controller="customersCtrl">
<table>
<tr ng-repeat="x in users">
<td>{{ x.name }}</td>
<td>{{ x.last_name }}</td>
</tr>
</table>
</div>