diff --git a/docs/content/guide/dev_guide.services.injecting_controllers.ngdoc b/docs/content/guide/dev_guide.services.injecting_controllers.ngdoc index fbfed468cf38..64fa0aafe351 100644 --- a/docs/content/guide/dev_guide.services.injecting_controllers.ngdoc +++ b/docs/content/guide/dev_guide.services.injecting_controllers.ngdoc @@ -15,14 +15,14 @@ convention they match the service IDs, which has added benefits discussed below.
function myController($loc, $log) { -this.firstMethod = function() { - // use $location service - $loc.setHash(); -}; -this.secondMethod = function() { - // use $log service - $log.info('...'); -}; + this.firstMethod = function() { + // use $location service + $loc.setHash(); + }; + this.secondMethod = function() { + // use $log service + $log.info('...'); + }; } // which services to inject ? myController.$inject = ['$location', '$log'];