mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-19 12:01:07 +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
|
* // Define function dependencies
|
||||||
* MyController.$inject = ['$scope', '$route'];
|
* MyController['$inject'] = ['$scope', '$route'];
|
||||||
*
|
*
|
||||||
* // Then
|
* // Then
|
||||||
* expect(injector.annotate(MyController)).toEqual(['$scope', '$route']);
|
* expect(injector.annotate(MyController)).toEqual(['$scope', '$route']);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue