Here is my code snippet.
<template>
<b-form-input
type="text"
name="title"
class="form-control"
placeholder="Post Title"
@update="onUpdate"
/>
</template>
<script>
export default{
methods:{
onUpdate(value) {
console.log(value)
}
}
}
</script>
While I was trying to make the update function inline something like this:
<b-form-input
type="text"
name="title"
class="form-control"
placeholder="Post Title"
@update="()=>{console.log(value)}" //which is wrong
/>
What will be correct format ? Thanks in advance!
CodeSandbox Playground: https://codesandbox.io/s/mystifying-benz-w8wgu?file=/src/FormFields.vue