Angular type error: getBBox() is not a function on ElementRef

241 views Asked by At

I am calling this.container.nativeElement.getBBox() in ngAfterViewInit — as you can see in the screenshot, this is causing an error and getBBox() is supposedly not a function. The strange thing is that getBoundingClientRect() works just fine on the element. What could the issue be here?

Screenshot of error message in dev console

0

There are 0 answers