aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
author{Qingping,Dave} Hou2013-03-24 10:53:31 +0800
committerJames deBoer2013-04-11 14:33:21 -0700
commitaa2e66dcaf316729e72072c4807b9e088e68a1a2 (patch)
treedb66be51aaff401843e830d8c1275c45d18b8f7d /docs
parent7b7b12e4776c7f110561e89d82f013d11595ff8e (diff)
downloadangular.js-aa2e66dcaf316729e72072c4807b9e088e68a1a2.tar.bz2
docs(guide): Added $ sign to controller example
Diffstat (limited to 'docs')
-rw-r--r--docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc b/docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc
index 97290040..cb4acef7 100644
--- a/docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc
+++ b/docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc
@@ -37,8 +37,8 @@ your application as follows:
var myApp = angular.module('myApp',[]);
-myApp.controller('GreetingCtrl', ['$scope', function(scope) {
- scope.greeting = 'Hola!';
+myApp.controller('GreetingCtrl', ['$scope', function($scope) {
+ $scope.greeting = 'Hola!';
}]);
Note also that we use the array notation to explicitly specify the dependency