aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc
diff options
context:
space:
mode:
author{Qingping,Dave} Hou2013-03-24 10:53:31 +0800
committerJames deBoer2013-04-11 14:32:44 -0700
commitdb547e63eef473f1d3a926b08656deac253ef995 (patch)
treebeabfe5b4badf804f14ea05cd46ab03573c55994 /docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc
parent63c25fd875d4516b9e55e629496b7e3791d08afc (diff)
downloadangular.js-db547e63eef473f1d3a926b08656deac253ef995.tar.bz2
docs(guide): Added $ sign to controller example
Diffstat (limited to 'docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc')
-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