Skip to content

Commit

Permalink
docs: add module auto-import note
Browse files Browse the repository at this point in the history
Change in a update version of README to create a new PR (as suggest by Brocco)

Close #5470
  • Loading branch information
elmeerr authored and hansl committed May 9, 2017
1 parent 377a062 commit 31fbf00
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,15 @@ Scaffold | Usage
[Module](https://github.com/angular/angular-cli/wiki/generate-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 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 `new-module` 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`:
Expand Down

0 comments on commit 31fbf00

Please sign in to comment.