javascript - how to create a list-view using angularjs? -
- display list of popular movies[10 title per page] url : http://api.themoviedb.org/3/discover/movie?sort_by=popularity.desc
- 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
Post a Comment