title: Angularjs minify best practice
body: <p>I'm reading  <a href="http://www.alexrothenberg.com/2013/02/11/the-magic-behind-angularjs-dependency-injection.html" rel="noreferrer">http://www.alexrothenberg.com/2013/02/11/the-magic-behind-angularjs-dependency-injection.html</a> and
  it turned out that angularjs dependency injection has problems if you minify your javascript
  so I'm wondering if instead of</p>
  <pre><code>var MyController = function($scope, $http) {
      $http.get('https://api.github.com/repos/angular/angular.js/commits')
        .then(function(response) {
          $scope.commits = response.data
        })
    }
  </code></pre>
  <p>you should use</p>
  <pre><code>var MyController = ['$scope', '$http', function($scope, $http) {
    $http.get('https://api.github.com/repos/angular/angular.js/commits')
      .then(function(response) {
        $scope.commits = response.data
      })
  }]
  </code></pre>
  <p>all in all I thought the second snippet was for the old version of angularjs but ....</p>
  <p>Should I always use the inject way (the second one) ?</p>