angular-particlesjs
angular-particlesjs copied to clipboard
Particles rendering only at HostListener("window.resize")
As referred on this stackoverflow question by Timothy Louw, particles are rendered only when the HostListener("window.resize") detected changes, triggering the setCanvasSize().
Also so, setCanvasSize() should be moved from the constructor and into ngOnInit()