Skip to content

Commit 5af5547

Browse files
author
Andrew Schmadel
committed
document prologue directive features
1 parent e4782f3 commit 5af5547

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,19 @@ class svc {
108108
}
109109
```
110110

111+
Prologue directives may also be used here:
112+
113+
```js
114+
class svc {
115+
constructor(dep1){
116+
"ngInject";
117+
this.dep1 = dep1;
118+
}
119+
}
120+
```
121+
122+
#### Exports
123+
111124
Exported functions and classes may be annotated. Exported functions must have names:
112125

113126
```js

0 commit comments

Comments
 (0)