Angular CLI - ng add
Install an Angular package and run its setup schematic.

How it works
ng add <package> installs a package and runs its schematic to configure the project. Review the package identity and changes, inspect angular.json and package files, and use a version compatible with the installed Angular release.
Good practice
- Check the local Angular CLI version and run commands from the intended workspace.
- Review angular.json targets and builders before assuming optional commands are configured.
- Use the package manager and lockfile selected by the project.
- Review generated files, configuration changes, and build output before committing or deploying.
Further reading: Tutorialspoint: Angular CLI - ng add · Current Angular CLI reference · Workspace configuration.
Back to course overview · Previous: Angular CLI - ng e2e · Next: Angular CLI - ng analytics