I v-model a data in my vue html to validate it in my form , but i also want to use it in other variable too this is my html
<input class="input-style px-3" :class="{'border-red-error':v$.categoryTitle.$errors.length>0}" type="text"
placeholder="title" :disabled="formIsSending" v-model="DataForValidating .categoryTitle">
this is my js code , but it does not work
const DataForValidating = reactive({
categoryTitle: '',
categorySlug: '',
})
const categoryFormData = {
categoryTitle: DataForValidating.categoryTitle,
categorySlug: DataForValidating.categorySlug,
}
i made categoryFormData reactive too , but it does not work