ng_add
Add npm packages to an Angular workspace using the 'ng add' command. Specify the package name, app root path, and additional options to streamline Angular project dependencies.
Instructions
Run 'ng add' to add a package to the Angular workspace
Input Schema
Name | Required | Description | Default |
---|---|---|---|
appRoot | Yes | The absolute path to the first folder in the 'path' property. For example, if 'path' is 'webui/src/app/modules/alerts', then 'appRoot' should be the absolute path to 'webui'. | |
options | No | Additional options for ng add | |
package | Yes | The npm package to add (e.g., @angular/material) |