'use strict';

angular.module('mementoMovieApp')
  .config(function ($stateProvider) {
    $stateProvider
      .state('movies', {
        url: '/?year&director&actor',
        templateUrl: 'app/movies/movies.html',
        controller: 'MoviesCtrl',
        resolve: {
          PaginatedMovies: function(Movies, Pagination) {
            return new Pagination(Movies);
          }
        }
      });
  });

'use strict';

angular.module('mementoMovieApp')
  .config(function ($stateProvider) {
    $stateProvider
      .state('movies', {
        url: '/?year&director&actor',
        templateUrl: 'app/movies/movies.html',
        controller: 'MoviesCtrl',
        resolve: {
          PaginatedMovies: ['Movies', 'Pagination', function(Movies, Pagination) {
            return new Pagination(Movies);
          }]
        }
      });
  });

Fix ui-router dependencies resolving in production.
Fix ui-router dependencies resolving in production.
