Invólucro: @tsparticles/angular
Wrapper Angular oficial (<ngx-particles />) para tsParticles.
Instalar
bash
pnpm add @tsparticles/angular @tsparticles/engine @tsparticles/slimFluxo de configuração rápida
- Registre
NgParticlesServiceuma vez na inicialização do aplicativo. - Carregue recursos com
loadSlim(engine). - Renderize
<ngx-particles [id] [options] />em modelos.
Referências Monorepo
- Pasta do pacote: https://github.com/tsparticles/tsparticles/tree/main/wrappers/angular
- Aplicativo de demonstração: https://github.com/tsparticles/tsparticles/tree/main/demo/angular
Leia-me
- LEIA-ME do wrapper: https://github.com/tsparticles/tsparticles/tree/main/wrappers/angular#readme
