title: Angular dependency injection, which is the better attempt and what's the difference?
body: <p>I'm working with angular for some time nowm and when I read examples or tutorials, I always see two ways of how they inject their services into their controllers.</p>
  
  <p>What's the major difference between the following 2 methods?</p>
  
  <p>1.</p>
  
  <pre><code>.controller('MyController', ['myService', function(myService) {
  }]);
  </code></pre>
  
  <p>2.</p>
  
  <pre><code>.controller('MyController', function(myService) {
  });
  </code></pre>
  
  <p>I include the services at the first line of the controller JS file:</p>
  
  <pre><code>angular.module('myApp.controllers', ['myApp.services']);
  </code></pre>