ng add <collection> [options]
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:
ng add @angular/pwa
Arguments
collection
The package to be added.
Value Type
string
Options
defaults
Disable interactive input prompts for options with a default.
Value Type
booleanDefault
false
dry-run
Run through and reports activity without writing out results.
Value Type
booleanDefault
false
force
Force overwriting of existing files.
Value Type
booleanDefault
false
help
Shows a help message for this command in the console.
Value Type
boolean
interactive
Enable interactive input prompts.
Value Type
booleanDefault
true
registry
The NPM registry to use.
Value Type
string
skip-confirmation
Skip asking a confirmation prompt before installing and executing the package. Ensure package name is correct prior to using this option.
Value Type
booleanDefault
false
verbose
Display additional details about internal operations during execution.
Value Type
booleanDefault
false