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
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -93,6 +93,15 @@ Scaffold | Usage
93
93
[Module](https://github.com/angular/angular-cli/wiki/generate-module) | `ng g module my-module`
94
94
95
95
96
+
97
+
98
+
angular-cli will add reference to `components`, `directives` and `pipes` automatically in the `app.module.ts`. If you need to add this references to another custom module, follow this steps:
99
+
100
+
1.`ng g module new-module` to create a new module
101
+
2. call `ng g component new-module/new-component`
102
+
103
+
This should add the new `component`, `directive` or `pipe` reference to the `new-module` you've created.
104
+
96
105
### Updating Angular CLI
97
106
98
107
If you're using Angular CLI `beta.28` or less, you need to uninstall `angular-cli` package. It should be done due to changing of package's name and scope from `angular-cli` to `@angular/cli`:
0 commit comments