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

Use with Vue3 #145

Open
ishratali1997 opened this issue Dec 10, 2022 · 2 comments
Open

Use with Vue3 #145

ishratali1997 opened this issue Dec 10, 2022 · 2 comments

Comments

@ishratali1997
Copy link

How to use vform with Vue3 using syntax like

<script setup> const form = new Form({ email: null, password: null, }) </script>

when I use this , v-modal/two way binding does not work.

@jamalsaidapp
Copy link

jamalsaidapp commented Jan 5, 2023

try to make the variable reactive and it will work.

import { reactive } from 'vue'
import Form from 'vform'


export default {
    setup() {
      const form = reactive( new Form( {
	name: null,
      } ) )
    }
}

@fawel11
Copy link

fawel11 commented Apr 4, 2023

What with Nuxt 3?

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

No branches or pull requests

3 participants