AngularJs dependency Injection difference : <p>Is the array necessary ? </p>

<pre><code>   app.controller('myController', ['$scope', function($scope){

}])
</code></pre>

<p>Will this work like the code above? </p>

<pre><code>   app.controller('myController', function($scope){

})
</code></pre>
