title: AngularJS : minification issue in directive
body: <p>I have yet another issue with minification. This time it's because of the $scope service passed to the directive's controller. See below code:</p>
  
  <pre><code>angular.module('person.directives').
  directive("person", ['$dialog', function($dialog) {
  return {
      restrict: "E",
      templateUrl: "person/views/person.html",
      replace: true,
      scope: {
          myPerson: '='
      },     
      controller: function ($scope)
      {                   
          $scope.test = 3;                   
      }
  }
  }]);
  </code></pre>
  
  <p>If I comment out the controller part, then it works fine.</p>
  
  <p>As you can see, I've used the array declaration for the directive, so the $dialog service is known to Angular even after minification. But how am I supposed to do it for the $scope service on the controller ? </p>