mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
docs($injector): use square bracket notation for $inject annotation
Closes #5104
This commit is contained in:
parent
cda061f723
commit
1014e52349
1 changed files with 1 additions and 1 deletions
|
|
@ -221,7 +221,7 @@ function annotate(fn) {
|
|||
* // ...
|
||||
* }
|
||||
* // Define function dependencies
|
||||
* MyController.$inject = ['$scope', '$route'];
|
||||
* MyController['$inject'] = ['$scope', '$route'];
|
||||
*
|
||||
* // Then
|
||||
* expect(injector.annotate(MyController)).toEqual(['$scope', '$route']);
|
||||
|
|
|
|||
Loading…
Reference in a new issue