docs(guide/injecting-services): fix indentation in example

Closes #4714
This commit is contained in:
Adam Bowen 2013-10-30 09:15:41 -05:00 committed by Pete Bacon Darwin
parent 627f9ba091
commit 89a67ca77c

View file

@ -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'];