Equivalently, we can use the $inject property annotation to achieve the same as above:
$inject
var MyController = function($scope) { // ... } MyController.$inject = ['$scope']; myModule.controller('MyController', MyController);