Closed Christian1626 closed 2 years ago
Hi,
I'm trying to pass a sanitize blob url in my IAlbum, but src is wating for a string type. How can I manage to solve this problem ?
let img: IAlbum = { src: this.sanitizer.bypassSecurityTrustUrl(URL.createObjectURL(blob)), caption: 'test' thumb: 'test' };
Solved it by extending IAlbum:
interface IAlbum2 extends IAlbum { src: any; }
Hi,
I'm trying to pass a sanitize blob url in my IAlbum, but src is wating for a string type. How can I manage to solve this problem ?