wittlock/ngx-image-zoom

Issue with server side Rendering

Opened this issue · 2 comments

ERROR TypeError: this.imageThumbnail.nativeElement.getBoundingClientRect is not a function

I haven't really looked into server side rendering at all. I'm not sure I'll get around to figuring that out and how to get this library to still work as intended anytime soon. I'd be happy to look over a pull request though.

According to the latest code in master this issue should not occur now as the calculation is done after the image load which will be triggered at browser side. I tested in ssr environment and verified it. This issue can be closed.