89
rated 0 times
[
90]
[
1]
/ answers: 1 / hits: 18024
/ 7 Years ago, wed, may 31, 2017, 12:00:00
I have an Angular app that I want to use particles.js in however I have no clue how to add it and get it working.
I've added it to the .angular-cli.json
scripts: [
../node_modules/particles.js/particles.js
],
And I've imported it into my component
import * as particlesJS from 'particles.js';
And attempted to initialize it using
particlesJS.load('particles-js', 'assets/particles.json', function() {
console.log('callback - particles.js config loaded');
});
Has anyone got this working?
More From » angular