From 89a67ca77ce21a37e6560a487193e33ad68d5335 Mon Sep 17 00:00:00 2001 From: Adam Bowen Date: Wed, 30 Oct 2013 09:15:41 -0500 Subject: docs(guide/injecting-services): fix indentation in example Closes #4714 --- .../guide/dev_guide.services.injecting_controllers.ngdoc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'docs') 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.
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'];
--
cgit v1.2.3