angular.module('zeus.landing', [])
  .controller('LandingController', function($scope, Landing) {
    $scope.popularmovies = {};
    $scope.latestmovies = {};
    $scope.upcomingmovies = {};

    $scope.fetchPopularMovies = function() {
      Landing.getPopularMovies()
        .then(function(data) {
          $scope.popularmovies = data.results;
        });
    };
    $scope.fetchLatestMovies = function() {
      Landing.getLatestMovies()
        .then(function(data) {
          $scope.latestmovies = data.results;
        });
    };
    $scope.fetchUpcomingMovies = function() {
      Landing.getUpcomingMovies()
        .then(function(data) {
          $scope.upcomingmovies = data.results;
        });
    };

  });
angular.module('zeus.landing', [])
  .controller('LandingController', function($scope, Landing) {
    $scope.popularmovies = {};
    $scope.latestmovies = {};
    $scope.upcomingmovies = {};
    $scope.popularshows = {};
    $scope.latestshows = {};

    $scope.fetchPopularMovies = function() {
      Landing.getPopularMovies()
        .then(function(data) {
          $scope.popularmovies = data.results;
        });
    };
    $scope.fetchLatestMovies = function() {
      Landing.getLatestMovies()
        .then(function(data) {
          $scope.latestmovies = data.results;
        });
    };
    $scope.fetchUpcomingMovies = function() {
      Landing.getUpcomingMovies()
        .then(function(data) {
          $scope.upcomingmovies = data.results;
        });
    };
    $scope.fetchPopularShows = function() {
      Landing.getPopularShows()
        .then(function(data) {
          $scope.popularshows = data.results;
        });
    };
    $scope.fetchLatestShows = function() {
      Landing.getLatestShows()
        .then(function(data) {
          $scope.latestshows = data.results;
        });
    };

  });
Add fetch methods for popular and airing today tv shows and data stores to hold results
Add fetch methods for popular and airing today tv shows and data stores to hold results
