ng add
Adds support for an external library to your project.
ng add <collection> [options]
Description
Adds the npm package for a published library to your workspace, and configures your default app project to use that library, in whatever way is specified by the library's schematic. For example, adding @angular/pwa configures your project for PWA support:
ng add @angular/pwa
The default app project is the value of defaultProject in angular.json.
Arguments
ARGUMENT | DESCRIPTION |
---|---|
<collection> | The package to be added. |
Options
OPTION | DESCRIPTION |
---|---|
--defaults=true|false | When true, disables interactive input prompts for options with a default. |
--help=true|false|json|JSON | Shows a help message for this command in the console. Default: false |
--interactive=true|false | When false, disables interactive input prompts. |
Previous: CLI Command Reference
Next:
ng build
- New Content published on w3resource:
- HTML-CSS Practical: Exercises, Practice, Solution
- Java Regular Expression: Exercises, Practice, Solution
- Scala Programming Exercises, Practice, Solution
- Python Itertools exercises
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework
- Angular - JavaScript Framework
- Vue - JavaScript Framework
- Jest - JavaScript Testing Framework