Displaying data from the JSON response

Now is the time to mark up the views to display the parsed data from our JSON output.

Let's open app/partials/movie-list.html and add the markup as follows:

<div class="pin-layout">
  <div ng-repeat="movie in movies">
    <div class="thumbnail">
       <h3 class="caption">{{movie.title}}</h3>
      <img width="180" ng-src="{{movie.posters.detailed}}" alt="{{movie.title}}">
        <p>{{movie.synopsis}}</p>
    </div>
  </div>
</div> 

This piece of code should be self-explanatory by now.

We have a wrapper div with a class named pin-layout; within it, we call another div with ng-repeat that will loop through each record of the movie model.

Within this, we will be displaying the movie title, poster image, and the critics' comments.

In case you would ...

Get AngularJS Web Application Development Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.