You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34-1Lines changed: 34 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,40 @@ See [ng-annotate](https://github.com/olov/ng-annotate)'s documentation and the [
35
35
36
36
### ES6 Annotations
37
37
38
-
This plugin can annotate some ES6 classes that are not supported by ng-annotate:
38
+
This plugin can annotate some ES6 classes and arrow functions that are not supported by ng-annotate:
39
+
40
+
#### Implicit arrow function annotation
41
+
42
+
Arrow functions may be annotated anywhere that a "regular" function expression may be used.
43
+
44
+
**NOTE:** There are places where you _shouldn't_ use arrow functions in an Angular application. Inside of an arrow function, the value of `this` is inherited from the lexical scope enclosing the function. For this reason, arrow functions should not be used to declare Angular services or providers.
45
+
46
+
_If you choose to ignore this warning, we'll add the annotations to your services and providers anyway, but your application probably won't work. Future releases may treat this condition as an error._
0 commit comments