Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse Images after angular render #113

Open
magarrent opened this issue Mar 5, 2018 · 3 comments
Open

Parse Images after angular render #113

magarrent opened this issue Mar 5, 2018 · 3 comments

Comments

@magarrent
Copy link

Hey there, I don't know how to parse the images recieved after the angular's render.

Example:

I recieve the images (and other HTML) from an API, and I can't put the attribute and use it

@Riron
Copy link
Owner

Riron commented May 28, 2018

Hello,
How are you using it ?
Getting the HTML and putting it in the DOM this way <div [innerHTML]="myHtml"></div> ?

@harshhp8
Copy link

harshhp8 commented Jun 3, 2019

i have the same problem, can not figure out how to render inside innerHTML.Doing in the same way like "<div [innerHTML]="myHtml"> ? ".. Any solution? @Riron

@kevingrabher
Copy link

@harshhp8

https://github.com/Riron/ionic-img-viewer#programmatic-usage
I think this makes it pretty clear.

Just use the image tags as described.
If necessary load the images like
<img [src]="imgUrl" #myImage (click)="presentImage(myImage)" />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants