diff options
| author | Adam Bowen | 2013-10-30 09:15:41 -0500 |
|---|---|---|
| committer | Pete Bacon Darwin | 2013-10-30 21:08:33 +0000 |
| commit | 89a67ca77ce21a37e6560a487193e33ad68d5335 (patch) | |
| tree | 87986dabe12860b6ca2d0403e771e1d2453af8b4 | |
| parent | 627f9ba09136e5b9ba359d2b67f8cfcda834586f (diff) | |
| download | angular.js-89a67ca77ce21a37e6560a487193e33ad68d5335.tar.bz2 | |
docs(guide/injecting-services): fix indentation in example
Closes #4714
| -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']; |
