From aa2e66dcaf316729e72072c4807b9e088e68a1a2 Mon Sep 17 00:00:00 2001 From: {Qingping,Dave} Hou Date: Sun, 24 Mar 2013 10:53:31 +0800 Subject: docs(guide): Added $ sign to controller example --- docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/content/guide') 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 -- cgit v1.2.3