Skip to content

Export the component directly from the package #2

@urkle

Description

@urkle

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions