I'm building an e-commerce using Angular5 and Google Cloud Firestore as Database. In the products page, I want to zoom a photo when the mouse hover the picture. Here's the problem:
As a zoom library, I'm using angular2-image-zoom. It works fine with images that are inside of my project, but when I pass a external image source (coming from Firebase storage, it doesn't work).
Code example:
product-page.component.ts
// This example doesn't work
<img
class="img-responsive"
[imageZoom]="externalPhoto" // ~>https://firebasestorage.googleapis.com/v0/...
[src]="externalPhoto"
[style.width.px]="width"
[style.height.px]="height">
//This example works fine
<img
class="img-responsive"
[imageZoom]="logoSrc" // ~>'assets/img/shared/logo.png';
[src]="logoSrc"
[style.width.px]="width"
[style.height.px]="height"
>
I already try all kind of DomSanitizer to bypass url, style, secureSrc but none of them worked. Do you guys have some suggestion?