Is there a way to display the input value automatically without using v-model and by making use of the "ref" attribute?
<div class="form-group m-b-40">
<input type="text" class="form-control" id="name" ref="name" required>
</div>
{{showInput}}
I attempted to achieve this functionality by writing the following method:
methods: {
showInput: function () {
this.$refs.name.value
},
}
However, the value isn't being updated as expected. Any suggestions on how to resolve this issue?