Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export the component directly from the package #2

Open
urkle opened this issue Sep 16, 2024 · 2 comments · May be fixed by #3
Open

Export the component directly from the package #2

urkle opened this issue Sep 16, 2024 · 2 comments · May be fixed by #3

Comments

@urkle
Copy link

urkle commented Sep 16, 2024

As I only want to use this component in a few select locations (that are dynamically imported) I would rather not have to install the component globally in my Vue instance. Instead it would be preferable to simply import the component directly where I need to use it. e.g.

<script setup>
import { ref } from 'vue';
import { PdfObject } from 'pdfobject-vue';

const myURL = ref('someURL');
</script>

<template>
<div>
   <PdfObject :url="myURL"/>
</div>
</template>
@pipwerks
Copy link
Owner

Fair point, I will look into it when I get some spare time. Thanks

urkle added a commit to urkle/pdfobject-vue that referenced this issue Sep 23, 2024
@urkle
Copy link
Author

urkle commented Sep 23, 2024

@pipwerks I created a PR that should do the trick..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants