ng add • Angular
Adds the npm package for a published library to your workspace, and configures
the project in the current working directory to use that library, as specified by the library's schematic.
For example, adding @angular/pwa configures your project for PWA support:
Arguments
collection
The package to be added.
Value Typestring
Options
defaults
Disable interactive input prompts for options with a default.
Value TypebooleanDefaultfalse
Run through and reports activity without writing out results.
Value TypebooleanDefaultfalse
force
Force overwriting of existing files.
Value TypebooleanDefaultfalse
help
Shows a help message for this command in the console.
Value Typeboolean
interactive
Enable interactive input prompts.
Value TypebooleanDefaulttrue
registry
The NPM registry to use.
Value Typestring
skip-confirmation
Skip asking a confirmation prompt before installing and executing the package. Ensure package name is correct prior to using this option.
Value TypebooleanDefaultfalse
verbose
Display additional details about internal operations during execution.
Value TypebooleanDefaultfalse