diff options
| author | Evan Winslow | 2013-11-23 15:18:54 -0800 | 
|---|---|---|
| committer | Pete Bacon Darwin | 2013-11-27 22:48:02 +0000 | 
| commit | cda061f723a78789c33988790d06561b14f55e89 (patch) | |
| tree | 2e1b3ae623cd8f464cddfb710211c5752e46094a /docs/content | |
| parent | 1497c6c1fb9783855802d2a81b6e3ec9b9b6bb66 (diff) | |
| download | angular.js-cda061f723a78789c33988790d06561b14f55e89.tar.bz2 | |
docs(guide/di): use square bracket notation for $inject annotation
Closes #5104
Diffstat (limited to 'docs/content')
| -rw-r--r-- | docs/content/guide/di.ngdoc | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/content/guide/di.ngdoc b/docs/content/guide/di.ngdoc index f694ea12..b305dd6b 100644 --- a/docs/content/guide/di.ngdoc +++ b/docs/content/guide/di.ngdoc @@ -146,7 +146,7 @@ of service names to inject.    var MyController = function(renamed$scope, renamedGreeter) {      ...    } -  MyController.$inject = ['$scope', 'greeter']; +  MyController['$inject'] = ['$scope', 'greeter'];  </pre>  In this scenario the ordering of the values in the '$inject' array must match the ordering of the arguments to inject.  | 
