mirror of
https://github.com/bluetech/ng-annotate-patched.git
synced 2026-07-02 08:27:43 +08:00
README: IIFE match-through
This commit is contained in:
@@ -145,6 +145,10 @@ ng-annotate understands `$modal.open` ([angular-ui/bootstrap](http://angular-ui.
|
||||
|
||||
ng-annotate understands chaining.
|
||||
|
||||
ng-annotate understands IIFE's and attempts to match through them, so
|
||||
`(function() { return function($scope) .. })()` works anywhere
|
||||
`function($scope) ..` does (for any IIFE args and params).
|
||||
|
||||
|
||||
## Explicit annotations
|
||||
You can prepend a function expression with `/* @ngInject */` to explicitly state that this
|
||||
|
||||
Reference in New Issue
Block a user