themyth92 / ngx-lightbox

Lightbox2 use with angular >= 5
MIT License
115 stars 70 forks source link

Lightbox with images from html content from database? #38

Closed kombasltd closed 4 years ago

kombasltd commented 5 years ago

Hi,

in your demo you put the images into an array in the component. For my case I load html content (a blog post) with linked images from an API, so I get the complete HTML code, and I like to display the large versions of the images with lightbox. Is this possible?

Best regards, Kay

themyth92 commented 5 years ago

Sorry i dont understand what you mean. So you mean u have a html content, and there are images in that html content and you want to display those images on lightbox ?

kombasltd commented 5 years ago

Yes, exactly that.

themyth92 commented 5 years ago

I think the way around is to extract the images as url since lightbox has no way to do that itself. Is it an url right ?