From 2f4967f1008f89780f948cdb50bb13653cac511a Mon Sep 17 00:00:00 2001 From: Matt Hardy Date: Sun, 30 Dec 2012 23:36:21 -0600 Subject: docs(guide): change example controller to properly call greet method on greeter --- docs/content/guide/di.ngdoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/content/guide') 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) { ... }]); - \ No newline at end of file + -- cgit v1.2.3