junior67 zgłoszeń

Jak działa v-model i two-way binding?

v-model to syntactic sugar: :modelValue + @update:modelValue (Vue 3) lub :value + @input (Vue 2). Na inputach wiąże wartość i nasłuchuje zmian. Modyfikatory: .lazy (change event), .number, .trim. Wiele v-model na komponencie (Vue 3).

Więcej pytań z Vue.js