Clear PDF Viewer

Bug Report or Feature Request (mark with an x)
- [ ] Regression (a behavior that used to work and stopped working in a new release)
- [ ] Bug report -> please search issues before submitting
- [ X ] Feature request
- [ ] Documentation issue or request

I am working on an app that has people uploading PDFs and having a preview of it on the screen. Sometimes, they want to delete and reupload a different PDF. I am having difficulty clearing the data.

<pdf-viewer [src]="exhibitMapData"
                    style="display: block"

In the component I have tried to this.exhibitMapData = null and it doesn’t change anything. I am guessing there’s some sort of local caching other than with the bound variable in src ?

Please advise

1 possible answer(s) on “Clear PDF Viewer

  1. Thank you very much. This works perfectly. I just expected to clear the src variable to null and it would clear the preview.