As I delve back into an old project, I've encountered a hurdle. My goal is to display some data in a table, but I seem to have forgotten the intricacies of working with JSON objects and Angular.
The API response I'm receiving looks something like this:
{"Search":[{"Title":"Not Another Teen Movie","Year":"2001","imdbID":"tt0277371","Type":"movie","Poster":"http://ia.media-imdb.com/images/M/MV5BODYyNTQyNzAzNF5BMl5BanBnXkFtZTgwNTA4ODYxMTE@._V1_SX300.jpg"},{"Title":"Not Just Another 8 Teen Movie","Year":"2003","imdbID":"tt0381457","Type":"movie","Poster":"N/A"},{"Title":"Not Just Another 8 Teen Movie 2","Year":"2003","imdbID":"tt0397579","Type":"movie","Poster":"N/A"},{"Title":"Not Just Another 8 Teen Movie 3","Year":"2004","imdbID":"tt0408045","Type":"movie","Poster":"N/A"}],"totalResults":"4","Response":"True"}
This is how I'm scoping the data:
$scope.AllMoviesFound = data;
My intention is to display all the different titles in a table:
<table class="table table-striped table-hover">
<thead>
<tr class="success">
<th>
<h3>Title</h3></a>
</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="item in AllMoviesFound">
<td><h4>{{item.Title}}</h4></td>
</tr>
</tbody>
</table>
However, I'm struggling to make this setup function properly. Can someone point out what might be missing in my table?