akrennmair/ng-pdfviewer

Issue when used on sub pages in Ionic

Opened this issue · 2 comments

When I'm trying to use ng-pdfviewer in my ionic app it will work perfectly for a standard pdf in a normal page. However, when I use it on "sub pages" (not sure if this is the correct word for what I'm talking about, it's the pages you get when you use href="#/app/search/{{pdf.id}}") it breaks all the links going to the subpage. I've specifically narrowed the problem down to the pdf.Instance. When you comment out the first line the pdf obviously doesn't work correctly, but the links start working correctly again. The error I'm receiving is: Error: undefined is not an object (evaluating 'pdf.Instance')
screen shot 2015-11-14 at 12 20 48 pm

Never mind I figured this one out, please ignore.

Hi AlexFine,

Good to hear from you.
I am a new to ionic and I am interesting in ionic 2.
Can I use ng-pdfviewer in ionic 2?
Could you share some code?

Thanks