docs(guide): Added $ sign to controller example

This commit is contained in:
{Qingping,Dave} Hou 2013-03-24 10:53:31 +08:00 committed by James deBoer
parent 7b7b12e477
commit aa2e66dcaf

View file

@ -37,8 +37,8 @@ your application as follows:
var myApp = angular.module('myApp',[]); var myApp = angular.module('myApp',[]);
myApp.controller('GreetingCtrl', ['$scope', function(scope) { myApp.controller('GreetingCtrl', ['$scope', function($scope) {
scope.greeting = 'Hola!'; $scope.greeting = 'Hola!';
}]); }]);
Note also that we use the array notation to explicitly specify the dependency Note also that we use the array notation to explicitly specify the dependency