title: Why we inject parameter inside array and function
body: <p>I'm a beginner in Angular development. I don't know why we inject twice argument inside for controller like:</p>
  
  <pre><code>app.controller('mycontroller', ['$scope', 'myFactory', 'Myothers', function ($scope, myFactory, Myothers) {}])
  </code></pre>
  
  <p>and see</p>
  
  <pre><code>app.controller('mycontroller', function ($scope, myFactory, Myothers) {})
  </code></pre>
  
  <p>Could you explain why we do this?</p>