Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aa2e66d

Browse files
houqpjbdeboer
authored andcommitted
docs(guide): Added $ sign to controller example
1 parent 7b7b12e commit aa2e66d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ your application as follows:
3737

3838
var myApp = angular.module('myApp',[]);
3939

40-
myApp.controller('GreetingCtrl', ['$scope', function(scope) {
41-
scope.greeting = 'Hola!';
40+
myApp.controller('GreetingCtrl', ['$scope', function($scope) {
41+
$scope.greeting = 'Hola!';
4242
}]);
4343

4444
Note also that we use the array notation to explicitly specify the dependency

0 commit comments

Comments
 (0)