mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
docs(guide): Added $ sign to controller example
This commit is contained in:
parent
63c25fd875
commit
db547e63ee
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue