Add "ng add" to Angular-CLI (#31561)

This commit is contained in:
superTO
2019-02-14 10:45:06 +08:00
committed by Randell Dawson
parent 58e10048a6
commit e719c154f6

View File

@ -28,6 +28,8 @@ Recognize that `ng` is the basic building block of the CLI. All your commands wi
* ng update * ng update
* ng add (Angular 6)
The key terms for each of these are quite telling. Together, they comprise what you will need to hit the ground running with Angular. Of course, there are many more. All commands are outlined in the [CLI's GitHub Documentation<sup>1</sup>](https://github.com/angular/angular-cli/wiki#additional-commands). You will likely find that the commands listed above will cover the necessary bases. The key terms for each of these are quite telling. Together, they comprise what you will need to hit the ground running with Angular. Of course, there are many more. All commands are outlined in the [CLI's GitHub Documentation<sup>1</sup>](https://github.com/angular/angular-cli/wiki#additional-commands). You will likely find that the commands listed above will cover the necessary bases.
#### ng new #### ng new
@ -76,6 +78,12 @@ Here is the syntax and options can be used with `ng update`.
`ng update [package]` `ng update [package]`
#### ng add
ng add will use npm to download new dependencies and invoke an installation script.
`ng add <package>`
**Options** **Options**
- dry-run - dry-run
`--dry-run (alias: -d)` `--dry-run (alias: -d)`