From 994bfa813019afa13396f920cc64f6f09c54770b Mon Sep 17 00:00:00 2001 From: Elmer Dantas Date: Fri, 17 Mar 2017 10:44:05 +0100 Subject: [PATCH 1/3] Update Generate Component section Change in a update version of README to create a new PR (as suggest by Brocco) --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index d8069cd4d5a6..65dc7e45b33d 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,15 @@ Interface | `ng g interface my-new-interface` Enum | `ng g enum my-new-enum` Module | `ng g module my-module` + + +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: + + 1. `ng g module newModule` to create a new module + 2. call `ng g component new-module/newComponent` + +This should add the new `component`, `directive` or `pipe` reference to the `newModule` you've created. + ### Updating Angular CLI 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`: From 614cee38b43b1e36a4f40937368c79f343bab6ac Mon Sep 17 00:00:00 2001 From: Elmer Dantas Date: Wed, 29 Mar 2017 11:19:18 +0200 Subject: [PATCH 2/3] Change module and components do dash-case --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 65dc7e45b33d..216ae60ff16a 100644 --- a/README.md +++ b/README.md @@ -97,8 +97,8 @@ Module | `ng g module my-module` 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: - 1. `ng g module newModule` to create a new module - 2. call `ng g component new-module/newComponent` + 1. `ng g module new-module` to create a new module + 2. call `ng g component new-module/new-component` This should add the new `component`, `directive` or `pipe` reference to the `newModule` you've created. From 55ed98d2598483faa201f4ce893d20fcf5721625 Mon Sep 17 00:00:00 2001 From: Elmer Dantas Date: Wed, 29 Mar 2017 11:20:03 +0200 Subject: [PATCH 3/3] use dash-case --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 216ae60ff16a..68f0ecbcbfb4 100644 --- a/README.md +++ b/README.md @@ -100,7 +100,7 @@ angular-cli will add reference to `components`, `directives` and `pipes` automat 1. `ng g module new-module` to create a new module 2. call `ng g component new-module/new-component` -This should add the new `component`, `directive` or `pipe` reference to the `newModule` you've created. +This should add the new `component`, `directive` or `pipe` reference to the `new-module` you've created. ### Updating Angular CLI