aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/guide/di.ngdoc
diff options
context:
space:
mode:
authorMatt Hardy2012-12-30 23:36:21 -0600
committerPawel Kozlowski2012-12-31 12:49:51 +0100
commit8d42ce85632b87bb75f89fa4b072ce798fb5a850 (patch)
tree588e3c13abea8de92b3c3726683ae200ceed12e1 /docs/content/guide/di.ngdoc
parentf0c6ebc07653f6267acec898ccef5677884e3081 (diff)
downloadangular.js-8d42ce85632b87bb75f89fa4b072ce798fb5a850.tar.bz2
docs(guide): change example controller to properly call greet method on greeter
Diffstat (limited to 'docs/content/guide/di.ngdoc')
-rw-r--r--docs/content/guide/di.ngdoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/content/guide/di.ngdoc b/docs/content/guide/di.ngdoc
index 83c3e9b7..8dec62e8 100644
--- a/docs/content/guide/di.ngdoc
+++ b/docs/content/guide/di.ngdoc
@@ -92,7 +92,7 @@ dependency lookup responsibility to the injector by declaring the dependencies a
// And this controller definition
function MyController($scope, greeter) {
$scope.sayHello = function() {
- greeter('Hello World');
+ greeter.greet('Hello World');
};
}
@@ -231,4 +231,4 @@ of declaring factories is:
run(['depService', function(depService) {
...
}]);
-</pre> \ No newline at end of file
+</pre>