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

Commit

Permalink
docs(guide/injecting-services): fix indentation in example
Browse files Browse the repository at this point in the history
Closes #4714
  • Loading branch information
adamnbowen authored and petebacondarwin committed Oct 30, 2013
1 parent 627f9ba commit 89a67ca
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down

0 comments on commit 89a67ca

Please sign in to comment.