I\'ve seen that on AngularJS tutorials, that some people declare their controller functions like so:
function FirstController($scrope) { // do something
The recommended way of declaring Controllers is using the array notation:
someModule.controller('MyController', ['$scope', 'dep1', 'dep2', function($scope, dep1, dep2) { ... $scope.aMethod = function() { ... } ... }]);
according to angularJS site : https://docs.angularjs.org/guide/di