@trollanfer wrote:
I want to display a pdf with ng2-pdfjs-viewer`.
When I hard code in my homepage.html something like :
<ng2-pdfjs-viewert pdfSrc="myfile.pdf"><ng2-pdfjs-viewert>
It’s ok, but when the same string comes from a json, it’s not evaluated and nothing shows up.
But if I do the same with an
<img>
tag, it’s ok and it is evaluated to an image.It seems to me that the browser knows what to do with
img
and does it, but is not told what to do by angular/ionic withng2-pdfjs
tag.What can I do ? I think about ComponentFactoryResolver, but not clear to me.
Posts: 2
Participants: 2