I got a problem on getting data from ng-repeat.
<tr ng-repeat="x in records"> <td>{{x.id}}</td> <td>{{x.title}}</td> <td>{{x.year}}</td> <td>{{x.note}}</td> </tr> The {{x.id}} is the tt0013158 I want to get from the JSON.
Here is the JSON:
{"result":{ "tt0013158":{ "note":"", "title":"The Frozen North", "year":"1922" }, "tt1605783":{ "note":"", "title":"Midnight in Paris", "year":"2011" } }} I can get the note, title and year correctly. But how can I get the id (such as tt0013158) from the JSON?