Welcome to ng2-pdfjs-viewer Discussions! #281
Replies: 1 comment 7 replies
-
|
Hi, I was try using simplest code and to load the pdf using ng-pdfjs-viewer but somehow it says missing pdf, I have kept pdf into src/assets/pdf still when I open http://localhost:4200/ it says Angular CLI: 17.3.17 Angular: 17.3.12 Package Version@angular-devkit/architect 0.1703.17 import { AppComponent } from './app.component'; @NgModule({ for app.html Loading your document... <ng-template #errorTemplate>
error_outline
Oops! Something went wrongWe couldn't load your PDF. Please try again. Retry<ng2-pdfjs-viewer for app.component.ts @component({ export class AppComponent { async goToPage(page: number) { and in angular.json
and on localhost it shows like this
` |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
-
👋 Welcome!
We’re using Discussions as a place to connect with other members of our community. We hope that you:
build together 💪.
To get started, comment below with an introduction of yourself and tell us about what you do with this community.
Beta Was this translation helpful? Give feedback.
All reactions