'use strict';

angular.module('mementoMovieApp')
  .controller('MovieDetailsCtrl', function ($scope, $stateParams, Auth, Movie, Profile) {
    Movie.get($stateParams.id)
      .then(function(movie) {
        $scope.model = movie;
    });

    $scope.isLoggedIn = Auth.isLoggedIn;

    $scope.followMovie = function() {
      Profile.followMovie($scope.model);
    };

    $scope.unfollowMovie = function() {
      Profile.unfollowMovie($scope.model);
    };
  });

'use strict';

angular.module('mementoMovieApp')
  .controller('MovieDetailsCtrl', function ($scope, $stateParams, Auth, Movies, Profile) {
    Movies.get($stateParams.id)
      .then(function(movie) {
        $scope.model = movie;
    });

    $scope.isLoggedIn = Auth.isLoggedIn;

    $scope.followMovie = function() {
      Profile.followMovie($scope.model);
    };

    $scope.unfollowMovie = function() {
      Profile.unfollowMovie($scope.model);
    };
  });

Fix movies service usage in movie-details.
Fix movies service usage in movie-details.
