I use the following code to display the result of a research :

```
<table>
    <tr ng-repeat="x in result">
    <td><div ng-click="display(x)">{{x}}<div></td> 
    </tr>
</table>

```

I use the following `$http.post` query to set values to `$scope.result`:

```
 $http.post('server.php', {"data" : $scope.keywords, "serverQuery" : "chercherAssociation"})
 .success(function(data, status) 
 {
     $scope.result = data;
 }

```

However, I need to change the code to something like this :

```
<table>
    <tr ng-repeat="x in result">
        <td><div ng-click="display(x.id)">{{x.name}}<div></td> 
    </tr>
</table>

```

So `$scope.result` will need to have two sets of values : **id** and **name**.
How do I do that ?

I have tried the following :

```
$scope.result.name = ...
$scope.result.id = ...

```

and some variations, but it didn't work (nothing show up in the `<table>`).