0
I have the following code:
<template>
<div>
<h2><Info/></h2>
<input type="text" maxlength="1" value=`<Info/>`/>
<input type="text" maxlength="1" />
<input type="text" maxlength="1" />
<input type="text" maxlength="1" />
<input type="text" maxlength="1" />
<input type="text" maxlength="1" />
</div>
</template>
<script>
import Info from "./Info.vue";
export default {
name: "App",
components: {Info}
}
</script>
I would like the value of to be passed to a variable, or even to the value of the direct input. But I don’t know how to do it, someone can help me?
What do you expect to be the textual representation of a Vue component?
– Luiz Felipe
It is only the value of an attribute, which is being sent in a <div>{{value}}</div>. In the template the only thing it returns to me is this value, so I’d like to put it within the value of the input.
– Tester