Open a document inside a component

Hi,
I want to open a document (pdf, txt, html, etc.) inside a component in my ionic App. I have tried several plugins (document-viewer, file-opener) which all open a document inside the devices default document viewer application. But I want to open the document inside a component in my app.

If a user clicks on a document in the list on the left, this document should be opened in the red marked component.

Is this somehow possible?

Have you tried https://www.npmjs.com/package/ng2-pdf-viewer ?

1 Like

Thank you. That is exactly what I was looking for!!!

1 Like