claude-craft / angular
CLAUDE.md106 starsChanged 4 months agoMITView on GitHub
Version documentée : Angular 22 (stable, sorti le 03/06/2026) Source : Angular version compatibility | Angular 22 release provideZoneChangeDetection() reste disponible pour migrer progressivement depuis Zone.js. Voir architecture.md pour les exemples complets et la migration Reactive Forms → Signal Forms.
- Installs packages
In this repository60 other files it gives its agents.
- docs/AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- .claude/references/flutter/CLAUDE.mdCLAUDE.md
- .claude/references/laravel/CLAUDE.mdCLAUDE.md
- .claude/references/paperclip/CLAUDE.mdCLAUDE.md
- .claude/references/reactnative/CLAUDE.mdCLAUDE.md
- .claude/references/svelte/CLAUDE.mdCLAUDE.md
- .claude/references/symfony/CLAUDE.mdCLAUDE.md
- .claude/references/vite/CLAUDE.mdCLAUDE.md
- .claude/references/vuejs/CLAUDE.mdCLAUDE.md
- aggregatesSkill
- api-gatewaySkill
- architectSkill
- architecture-clean-dddSkill
- architectureSkill
- asyncSkill
- atomic-tasksSkill
- coding-standardsSkill
- cqrsSkill
- ddd-patternsSkill
- debug-methodicalSkill
- design-md-conventionSkill
- docker-hadolintSkill
- doctrine-extensionsSkill
- documentationSkill
- domain-eventsSkill
- dynamic-workflowsSkill
- ecosystem-toolsSkill
- edge-computingSkill
- event-drivenSkill
- git-workflowSkill
- graphqlSkill
- i18nSkill
- kiss-dry-yagniSkill
- monorepoSkill
- multitenantSkill
- navigationSkill
- observabilitySkill
- parallel-worktreesSkill
- performanceSkill
- quality-toolsSkill
- remotionSkill
- security-flutterSkill
- security-reactnativeSkill
- security-reactSkill
- securitySkill
- security-symfonySkill
- socratic-brainstormSkill
- solid-principlesSkill
- state-managementSkill
- testing-flutterSkill
- testing-pythonSkill
- testing-reactnativeSkill
- testing-reactSkill
- testingSkill
- testing-symfonySkill
- toolingSkill
- value-objectsSkill
- wasmSkill
- workflow-analysisSkill
The file
Files
Angular 22 - Quick Reference
Version documentée : Angular 22 (stable, sorti le 03/06/2026)
Versions Requises (2026)
| Composant | Version | Notes |
| Angular | 22 | Stable depuis 03/06/2026 |
| TypeScript | 6.x | TS 5.x non supporté depuis Angular 22 |
| Node.js | 22.x ou 24.x | Node 20 supprimé depuis Angular 22 |
| Angular CLI | 22.x | npm install -g @angular/cli |
Source : Angular version compatibility | Angular 22 release
Architecture Domain-Driven
src/app/
├── core/ # Singleton services, guards, interceptors, modèles
├── shared/ # Composants, pipes, directives réutilisables
├── features/ # Modules métier (feature-based, standalone)
│ └── [feature]/
│ ├── components/
│ ├── services/
│ ├── store/
│ └── [feature].routes.ts
├── layout/ # Shell, header, sidebar, footer
├── app.component.ts
├── app.config.ts # Bootstrapping + providers
└── app.routes.ts # Root routingPoints clés Angular 22
Standalone Components (défaut)
Toujours utiliser standalone: true — NgModules réservés aux libs legacy.
Signals — gestion d'état par défaut
signal(), computed(), effect() — alternative moderne aux BehaviorSubject.
Zoneless par défaut
// app.config.ts — projets Angular 22 générés via CLI (déjà zoneless par défaut)
import { ApplicationConfig } from '@angular/core';
import { provideZonelessChangeDetection } from '@angular/core';
export const appConfig: ApplicationConfig = {
providers: [
// NOTE: Angular 21+ CLI génère les projets sans Zone.js par défaut.
// Ajouter provideZonelessChangeDetection() uniquement pour MIGRER
// une app existante zone-based vers le mode zoneless.
provideZonelessChangeDetection(),
provideRouter(routes),
provideHttpClient(),
]
};
provideZoneChangeDetection()reste disponible pour migrer progressivement depuis Zone.js.
Signal Forms (stable Angular 22)
Remplace FormGroup/FormControl par une API signal-based. Import depuis @angular/forms/signals :
import { signal } from '@angular/core';
import { form, FormField, required, email as emailValidator } from '@angular/forms/signals';
@Component({ standalone: true, imports: [FormField], template: `...` })
export class LoginComponent {
model = signal({ email: '', password: '' });
loginForm = form(this.model, (path) => {
required(path.email);
emailValidator(path.email);
required(path.password);
});
// Accès signal
// loginForm.value() → { email: '', password: '' }
}Voir architecture.md pour les exemples complets et la migration Reactive Forms → Signal Forms.
httpResource — chargement HTTP déclaratif
import { httpResource } from '@angular/common/http';
@Component({ ... })
export class UsersComponent {
// Chargement déclaratif avec signal — remplace HttpClient + subscribe
usersResource = httpResource<User[]>('/api/users');
users = this.usersResource.value; // Signal<User[] | undefined>
loading = this.usersResource.isLoading; // Signal<boolean>
error = this.usersResource.error; // Signal<unknown>
}@defer — Deferrable Views (lazy subtrees)
@Component({
template: `
@defer (on viewport) {
<app-heavy-chart [data]="data()" />
} @placeholder {
<div class="skeleton" />
} @loading (minimum 300ms) {
<app-spinner />
}
`
})ChangeDetection.OnPush par défaut
@Component({
changeDetection: ChangeDetectionStrategy.OnPush // ← obligatoire
})Checklist Rapide
- Angular 22, TypeScript 6, Node 22/24
- Standalone components (
standalone: true) - Zoneless par défaut (Angular 21+ CLI) — migration depuis zone-based :
provideZonelessChangeDetection() - Signals pour l'état réactif (
signal,computed,effect) - Signal Forms pour les formulaires (pas FormGroup classique)
httpResource()pour les chargements HTTP déclaratifs@deferpour le lazy loading des sous-arbresChangeDetectionStrategy.OnPushsur tous les composantsinject()au lieu du constructeur injection- Tests >= 80% coverage
Documentation Complète
architecture.md— Principes DDD, Smart/Dumb, lazy routing, DIcoding-standards.md— TypeScript strict, ESLint, Signal Forms, conventionstooling.md— Angular CLI, prérequis système, scriptsquality-tools.md— TypeScript strict, ESLint, Vitest, audittesting.md— TDD, Vitest, TestBed, stratégiessecurity.md— XSS, CSRF, CSP, authproject-context.md— Template de contexte projet
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

