Skip to content

Commit 3dbd3d2

Browse files
committed
docs(generators:directive): create directive.md
[skip ci]
1 parent c628bd1 commit 3dbd3d2

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

docs/generators/directive.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
### Directive
2+
Generates a directive.
3+
4+
Example:
5+
```bash
6+
yo angular-fullstack:directive myDirective
7+
[?] Where would you like to create this directive? client/app/
8+
[?] Does this directive need an external html file? Yes
9+
```
10+
11+
Produces:
12+
13+
client/app/myDirective/myDirective.directive.js
14+
client/app/myDirective/myDirective.directive.spec.js
15+
client/app/myDirective/myDirective.html
16+
client/app/myDirective/myDirective.scss
17+
18+
**Simple directive without an html file**
19+
20+
Example:
21+
```bash
22+
yo angular-fullstack:directive simple
23+
[?] Where would you like to create this directive? client/app/
24+
[?] Does this directive need an external html file? No
25+
```
26+
27+
Produces:
28+
29+
client/app/simple/simple.directive.js
30+
client/app/simple/simple.directive.spec.js

0 commit comments

Comments
 (0)