php - AngularJS json output format -
i have problem outputting data json file
{ "movie": { "rowcount": 0, "result": [ { "movieid": "124", "moviename": "hello" }, { "movieid": "123", "moviename": "world" } ] } }
i dont know why {{}} statement wont work kind of json file. if json file format following
{ "disccount": 0, "results":[ { "disccode": "abc123" }, { "disccode": "abcd123" } ] }
it works perfect calling {{variablename.disccode}}
can me please? thank you
from edit, appeared resolving wrong property. should resolve :
defer.resolve({ data: response.movie.result, rowcount: response.movie.rowcount });
then, because controller stores data in $scope.movies
, following ng-repeat
ok :
<tr data-ng-repeat="movie in movies"> <td>{{movie.id}}</td><td>{{movie.moviename}}</td> </tr>
Comments
Post a Comment