This repository was archived by the owner on Jun 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
Cannot make it work with angular #17
Comments
Merott
added a commit
that referenced
this issue
May 21, 2017
This release is almost a full rewrite and fixes a number of issues as well as being made compatible with NativeScript 3. Close #8, close #15, close #16, close #18. Also related is #17. BREAKING CHANGE: The plugin no longer auto-registers a tag in Angular applications. Instructions to register a `PDFView` element have been added to the project README.
Could you please verify if this issue still exists on the newly released version 2? |
You may be missing the imports mentioned in the readme: import { PDFView } from 'nativescript-pdf-view';
import { registerElement } from 'nativescript-angular';
registerElement('PDFView', () => PDFView); And if it still doesn't appear you can try the flex layout mentioned in the readme, or as a quick check add width and height: <PDFView width="200" height="200" [src]="src" (load)="onLoad()"></PDFView> |
is good now |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
this is what I have
name.html
...
<PDFView [src]="src" (load)="onLoad()"></PDFView>
...
name.component.ts
...
...
It's just showing the alert but not the pdf.
The text was updated successfully, but these errors were encountered: