Claudeskills.frClaudeskills.fr

oguzhan18/angular-ecosystem-skills

Angular Destroyref

182installations7étoiles GitHub

3 979e ex aequo sur 4 265 skills du métier Développement, par installations. Dans l'annuaire depuis le 18 novembre 2026.

Description

Si vous vous désabonnez encore à la main des observables Angular ou utilisez l'ancien motif ngOnDestroy, ce Skill vous oriente vers DestroyRef et takeUntilDestroyed, approche recommandée depuis Angular 16. Il couvre le nettoyage d'un composant et celui d'un service, avec des exemples courts.

Voir la description originale (anglais)

If you're still manually unsubscribing from observables in Angular or using the old ngOnDestroy pattern, this skill pushes you toward DestroyRef and takeUntilDestroyed, which became the recommended approach in Angular 16+. It covers the standard component cleanup pattern and also shows how to handle it in services, which is less obvious but equally important. The examples are minimal but hit the key scenarios. Honestly, this is one of those patterns that should just become muscle memory once you see it, and having Claude automatically reach for it when dealing with subscriptions saves you from memory leaks and outdated patterns.

Installer le skill

  1. 1Copiez la commande d'installation (bouton Copier, en haut de la fiche).
  2. 2Lancez-la dans un terminal, sur la machine où vous utilisez Claude Code.
  3. 3Demandez la tâche à Claude comme d'habitude : il charge le skill quand la demande s'y prête.
Skill non audité par Claudeskills.fr. Des tiers publient les skills de l'annuaire. Lisez leur source avant de les installer, surtout sur des données sensibles.