-
Notifications
You must be signed in to change notification settings - Fork 23
Description
Have updated my application to Angular 9.
Making use of the radial gauge.
Seeing this error:
DamageGaugeComponent.html:2 ERROR TypeError: Cannot read property 'nativeElement' of undefined
at RadialGauge$1.get options [as options] (ng-canvas-gauges.js:62)
at RadialGauge$1.ngOnInit (ng-canvas-gauges.js:305)
at checkAndUpdateDirectiveInline (core.js:32904)
at checkAndUpdateNodeInline (core.js:45701)
at checkAndUpdateNode (core.js:45640)
at debugCheckAndUpdateNode (core.js:46663)
at debugCheckDirectivesFn (core.js:46606)
at Object.eval [as updateDirectives] (DamageGaugeComponent.html:2)
at Object.debugUpdateDirectives [as updateDirectives] (core.js:46594)
at checkAndUpdateView (core.js:45605)
It appears that the protected canvas: ElementRef; is not being set and is therefore undefined.
I'm wondering whether this needs to be updated to use the new static flag with ViewChild.