angular-three
angular-three copied to clipboard
canvasRef causing issue
Property 'canvasRef' has no initializer and is not definitely assigned in the constructor. i was getting this error.
instead of that, use this code
@ViewChild('canvas', { static: true })
private canvasRef!: ElementRef;
it must be causing error in new angular version I guess