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: packages/schematics/README.md
+7-3
Original file line number
Diff line number
Diff line change
@@ -24,8 +24,12 @@ This will produce the following file tree.
24
24
sandwich/
25
25
sandwich-preview/
26
26
sandwich-preview.component.ts
27
-
sandwich-preview.component.*
28
-
sandwich-preview.module.ts
27
+
sandwich-preview.component.css|scss
28
+
sandwich-preview.component.html
29
+
sandwich-preview.component.spec.ts
29
30
```
30
31
31
-
Where `sandwich-preview.module.ts` declares and exports `SandwichPreviewComponent`.
32
+
The Angular Module (`NgModule`) is declared inside `sandwich-preview.component.ts` which is the recommended approach.
33
+
You can read why here [https://medium.com/wishtack/your-angular-module-is-a-scam-b4136ca3917b](https://medium.com/wishtack/your-angular-module-is-a-scam-b4136ca3917b) and here [https://medium.com/@alx_31836/i-am-a-huge-proponent-of-scam-and-im-definitely-using-that-name-from-now-on-cab2fe98fee3](https://medium.com/@alx_31836/i-am-a-huge-proponent-of-scam-and-im-definitely-using-that-name-from-now-on-cab2fe98fee3).
34
+
35
+
If for some reason, you want a separate file for the module, you can use the `--separate-module` option.
0 commit comments