Skip to content

Possible to visit Modal page regularaly? #68

Answered by pascalbaljet
AUAboi asked this question in Q&A
Discussion options

You must be logged in to vote

Try using a dynamic component to determine whether the page should be wrapped in a Modal component or not. Something like this:

<script setup>
import { Modal } from '@inertiaui/modal-vue'
import { ref } from 'vue';

const isModal = ref(true);
</script>

<template>
    <component :is="isModal ? Modal : 'div'">
        <!-- content -->
    </component>
</template>

I'm converting this issue into a discussion as it's not really a bug.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AUAboi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #62 on December 18, 2024 15:19.