Installation & Setup in Angular
From the Angular cheat sheet ยท Setup & CLI ยท verified Jul 2026
Installation & Setup
Setting up Angular development environment
typescript
# Install Angular CLI globally
npm install -g @angular/cli
# Create new project
ng new my-app
# Options: routing, CSS/SCSS/Sass/Less
# Start development server
ng serve
ng serve --open # Opens browser
ng serve --port 4201
# Build for production
ng build
ng build --configuration production๐ก Use ng new with --strict for stricter TypeScript settings
โก ng serve automatically reloads on file changes
๐ Production builds include tree-shaking and minification
๐ฅ Use ng update to keep Angular versions in sync