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 13:21:29 +0100
commit2f4967f1008f89780f948cdb50bb13653cac511a (patch)
treea692904f5e6f0a20ffb442314cf47c0bf1117271 /docs/content/guide/di.ngdoc
parent4fe4e7457cbc199d5082501c0c55c435801cdcb8 (diff)
downloadangular.js-2f4967f1008f89780f948cdb50bb13653cac511a.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>