ラッパー: @tsparticles/angular
tsParticles の公式 Angular ラッパー (<ngx-particles />)。
インストール
bash
pnpm add @tsparticles/angular @tsparticles/engine @tsparticles/slim簡単なセットアップの流れ
- アプリ起動時に
NgParticlesServiceを一度登録します。 loadSlim(engine)を使用して機能をロードします。- テンプレートで
<ngx-particles [id] [options] />をレンダリングします。
モノリポジトリ参照
- パッケージフォルダー: https://github.com/tsparticles/tsparticles/tree/main/wrappers/angular
- デモアプリ: https://github.com/tsparticles/tsparticles/tree/main/demo/angular
