angular-three icon indicating copy to clipboard operation
angular-three copied to clipboard

canvasRef causing issue

Open Archis03007 opened this issue 1 year ago • 1 comments

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;

Archis03007 avatar Jan 11 '24 06:01 Archis03007

it must be causing error in new angular version I guess

srivastavaanurag79 avatar Jan 11 '24 07:01 srivastavaanurag79