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 63c25fd875
commit db547e63ee

View file

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