Particle js background for angular project?
问题 Can anyone explain how to add particle js background for angular 6 project? I followed some tutorials as bellow link.but it didn't work for me. https://github.com/VincentGarreau/particles.js/ Thank you. 回答1: this is how i got it to work in my NG6 project: Install particles.js from npm: npm i particles.js --save Add node_modules/particle.js/particle.js in your scripts section in angular.json In your component add: declare var particlesJS: any; before @component Go to particle.js and modify the