Loading...
Loading...
ALWAYS use when working with Angular CLI, generating components, services, building applications, or workspace configuration in Angular projects.
npx skill4agent add oguzhan18/angular-ecosystem-skills angular-cling g @angular/core:control-flowng g @angular/core:signal-input-migrationng g @angular/core:route-lazy-loading# Generate component
ng g c components/my-component
# Generate service
ng g s services/my-service
# Generate guard
ng g g guards/auth
# Generate interceptor
ng g interceptor timing
# Generate library
ng g library my-lib
# Generate with standalone
ng g c my-component --standalone# Migrate to control flow
ng g @angular/core:control-flow
# Migrate to signal inputs
ng g @angular/core:signal-input-migration
# Migrate to lazy loading routes
ng g @angular/core:route-lazy-loading# Add Angular Material
ng add @angular/material
# Add SSR
ng add @angular/ssr
# Add PWA
ng add @angular/pwa{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"my-app": {
"schematics": {
"@schematics/angular:component": {
"style": "scss",
"standalone": true
}
}
}
}
}# Run custom builder
ng run my-app:build
# Run SSR
ng run my-app:serve-ssr
# Run prerender
ng run my-app:prerender# Set default style
ng config defaults.style=scss
# Enable analytics
ng analytics enable# Update packages
ng update
# Update specific package
ng update @angular/core# Production build
ng build --configuration=production
# Dev build with stats
ng build --stats-json# New project with standalone
ng new my-app --standalone# Generate functional guard
ng g g guards/auth --functional
# Generate functional interceptor
ng g interceptor my-interceptor --functional