diff options
| -rw-r--r-- | docs/content/guide/dev_guide.services.injecting_controllers.ngdoc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/docs/content/guide/dev_guide.services.injecting_controllers.ngdoc b/docs/content/guide/dev_guide.services.injecting_controllers.ngdoc index fbfed468..64fa0aaf 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. <pre> 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']; |
