ng add
This is the documentation for Angular 7.
You can switch to the latest version Angular 10.
You can switch to the latest version Angular 10.
ng add [name]
Add support for a library to your project.
Hint
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.
The default app project is the value of defaultProject
in angular.json
.
Links & Tutorials
Options
--defaults
#
Type | boolean |
Default | false |
--dryRun
#
Type | boolean |
Default | false |
Aliases | d |
--force
#
Type | boolean |
Default | false |
Aliases | f |
--help
#
Values | true|false|json|JSON |
Default | false |
--interactive
#
Type | boolean |
Default | false |