How do you implement a basic validation that shows an error when a field is empty in Vue 3?
-
A
Use a computed property or watcher to check the field's value and set an error message ref
-
B
Use the HTML required attribute only
-
C
Use Vue's built-in v-validate directive
-
D
Form validation requires a third-party library