javascript - how to create a list-view using angularjs? -


  1. display list of popular movies[10 title per page] url : http://api.themoviedb.org/3/discover/movie?sort_by=popularity.desc
  2. display details of movie on click data previous used. fields should mandatory : overview, release_date, vote_average

any example code there please share me. helpful me

thanks in advanced

your question little bit vague can provide information ng-repeat.

in controller, have array like:

$scope.movies = [{title: "avatar"}, {title: "spectre"}, {title: "teletubbies"}] 

then, in html create list this:

<ul>     <li ng-repeat="movies in movies">{{movie.title}}</li> </ul> 

in list item can later add ng-click attribute, second part of question. first, make sure populate list using api!


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -