Angular App taste
# Angular App taste of a frontend lead on large enterprise apps - Use standalone components everywhere and skip NgModules on new code. Confidence: 0.90 - Use signals for local and shared state, and keep RxJS for event st
Works with
claude-code (compatible), claude (compatible), codex (compatible), chatgpt (compatible), gemini-cli (compatible), cursor (compatible), copilot (compatible), opencode (compatible), amp (compatible), roo (compatible), kiro (compatible), goose (compatible), junie (compatible), trae (compatible), cline (compatible), continue (compatible), antigravity (compatible), windsurf (compatible), augment (compatible), qwen-code (compatible), aider (compatible)
Content
Angular App taste of a frontend lead on large enterprise apps
- Use standalone components everywhere and skip NgModules on new code. Confidence: 0.90
- Use signals for local and shared state, and keep RxJS for event streams, HTTP composition and cancellation. Confidence: 0.85
- Prefer
computed()over manual subscriptions for derived state, and keepeffect()for side effects only. Confidence: 0.80 - Set
ChangeDetectionStrategy.OnPushon every component, or go zoneless on new apps. Confidence: 0.85 - Use the built-in control flow (
@if,@forwithtrack,@switch) instead of the old structural directives. Confidence: 0.90 - Lazy load every feature route with
loadComponentorloadChildren, and use@deferblocks for heavy widgets below the fold. Confidence: 0.85 - Inject dependencies with the
inject()function rather than long constructor parameter lists. Confidence: 0.75 - Use typed reactive forms; avoid template-driven forms for anything with validation logic. Confidence: 0.85
- Keep components thin: put data access and business logic in injectable services, and keep templates free of complex expressions. Confidence: 0.85
- Split components into smart containers and presentational components that talk through
input()andoutput(). Confidence: 0.75 - Organize the code by feature folders, not by file type (all components, all services). Confidence: 0.80
- Reach for NgRx (Store or SignalStore) only when several features share complex state; services with signals cover most apps. Confidence: 0.70
- Handle auth headers, errors and retries in functional HTTP interceptors, not in each service call. Confidence: 0.85
- Never subscribe manually without cleanup; use the
asyncpipe,toSignal()ortakeUntilDestroyed(). Confidence: 0.90 - Turn on
strictmode and strict template checking intsconfig.json. Confidence: 0.90 - Use the Angular CLI and its esbuild-based builder, and keep
angular.jsoncustomizations to a minimum. Confidence: 0.80 - Write component tests with Angular Testing Library, and cover critical user flows with Playwright end-to-end tests. Confidence: 0.75
- Enforce an initial bundle size budget in
angular.jsonso the build fails when it is exceeded. Confidence: 0.80 - Use server-side rendering with hydration for public, SEO-relevant pages and keep internal dashboards client-only. Confidence: 0.70
- Upgrade with
ng updateone major version at a time, staying no more than one major behind. Confidence: 0.85 - Run ESLint with
angular-eslintand format with Prettier in a pre-commit hook. Confidence: 0.80
Source and license
- Source
- Prompts Chat
- Original
- f/awesome-chatgpt-prompts/prompts.csv#angular-app-taste
- License
- MIT