Getting Started
Generate a new Angular project using the Angular CLI with a specific version:
use the command pnpx @angular/cli@<SPECIFIC_VERSION> new my-app-name
as exemplified below:
pnpx @angular/cli@18 new my-app --package-manager pnpm
You can pass several flags to this command:
pnpx @angular/cli@18 new todo-angular --routing --style=scss --standalone false --package-manager pnpm --ssr=false
Generate a component without test files:
ng generate component dir/my-component --skip-tests
also:
ng g c shared/my-component --standalone=false --module app.module
Serve the application locally:
ng serve