skip to Main Content

Javascript – resetting v-model of child component

In my parent component I have something similar to this, <template> <ProductCounter v-model="formData.productCount" label="product count" /> </template> <script setup> const initialFormData = { productCount: null, firstname: '', surname: '', phone: '', email: '', postcode: '', submittedOnce: false, errors: [] }…

VIEW QUESTION
Back To Top
Search