Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 89a67ca

Browse files
adamnbowenpetebacondarwin
authored andcommitted
docs(guide/injecting-services): fix indentation in example
Closes #4714
1 parent 627f9ba commit 89a67ca

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/content/guide/dev_guide.services.injecting_controllers.ngdoc

+8-8
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ convention they match the service IDs, which has added benefits discussed below.
1515

1616
<pre>
1717
function myController($loc, $log) {
18-
this.firstMethod = function() {
19-
// use $location service
20-
$loc.setHash();
21-
};
22-
this.secondMethod = function() {
23-
// use $log service
24-
$log.info('...');
25-
};
18+
this.firstMethod = function() {
19+
// use $location service
20+
$loc.setHash();
21+
};
22+
this.secondMethod = function() {
23+
// use $log service
24+
$log.info('...');
25+
};
2626
}
2727
// which services to inject ?
2828
myController.$inject = ['$location', '$log'];

0 commit comments

Comments
 (0)