docs(guide): change example controller to properly call greet method on greeter

This commit is contained in:
Matt Hardy 2012-12-30 23:36:21 -06:00 committed by Pawel Kozlowski
parent 4fe4e7457c
commit 2f4967f100

View file

@ -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>
</pre>