Z
Z
zxcursed2022-03-24 23:12:27
Vue.js
zxcursed, 2022-03-24 23:12:27

Which is better to use a form or click-to-function?

I am mastering vue and the question arose, is there a certain form when it contains an input and when a button is clicked, an API request is made, what is better to use in this case the form or @click event to call the function and is there any difference at all?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
low molecular macro, 2022-03-24
@molekulyarniy

use @submitvue forms

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question