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()
As referred on this stackoverflow question by Timothy Louw, particles are rendered only when the
HostListener("window.resize")
detected changes, triggering thesetCanvasSize()
.Also so,
setCanvasSize()
should be moved from the constructor and intongOnInit()