Skip to content

Commit 8d42ce8

Browse files
mghardypkozlowski-opensource
authored andcommitted
docs(guide): change example controller to properly call greet method on greeter
1 parent f0c6ebc commit 8d42ce8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/content/guide/di.ngdoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ dependency lookup responsibility to the injector by declaring the dependencies a
9292
// And this controller definition
9393
function MyController($scope, greeter) {
9494
$scope.sayHello = function() {
95-
greeter('Hello World');
95+
greeter.greet('Hello World');
9696
};
9797
}
9898

@@ -231,4 +231,4 @@ of declaring factories is:
231231
run(['depService', function(depService) {
232232
...
233233
}]);
234-
</pre>
234+
</pre>

0 commit comments

Comments
 (0)