Emballage : @tsparticles/angular
Wrapper angulaire officiel (<ngx-particles />) pour tsParticles.
Installer
bash
pnpm add @tsparticles/angular @tsparticles/engine @tsparticles/slimFlux de configuration rapide
- Enregistrez
NgParticlesServiceune fois au démarrage de l'application. - Chargez les fonctionnalités avec
loadSlim(engine). - Rendu
<ngx-particles [id] [options] />dans les modèles.
Références Monorepo
- Dossier du package : https://github.com/tsparticles/tsparticles/tree/main/wrappers/angular
- Application de démonstration : https://github.com/tsparticles/tsparticles/tree/main/demo/angular
Lisez-moi
- README du wrapper : https://github.com/tsparticles/tsparticles/tree/main/wrappers/angular#readme
