angular.module('zeus.results', [])
.controller('ResultsController', function($scope, Results, $routeParams) {
  $scope.results = [];
  $scope.loaded = false;
  $scope.pages = 1;
  var search = $routeParams.search;
  Results.multiSearch(search)
    .then(function(results) {
      $scope.loaded = true;
      $scope.results = results.data.results;
      $scope.totalPages = results.data.total_pages;
      $scope.totalResults = results.data.total_results;
      console.log($scope.results);
    });
});
angular.module('zeus.results', [])
.controller('ResultsController', function($scope, Results, $routeParams) {
  $scope.results = [];
  $scope.loaded = false;
  $scope.search = $routeParams.search;
  var page = $routeParams.page || 1;
  Results.multiSearch($scope.search, page)
    .then(function(results) {
      $scope.loaded = true;
      $scope.results = results.data.results;
      $scope.totalPages = _.range(1, results.data.total_pages+1);
      $scope.totalResults = results.data.total_results;
      console.log($scope.results);
    });
});
Save current movie being search on model and make totalPages array
Save current movie being search on model and make totalPages array
