0👍
✅
You simply have to remove v-model="NameModel"
from the label
element and add it to the input
element.
<label for="Name" id="NameLabel">Name</label>
<input type="text" name="Name" id="NameInput" v-model="NameModel">
0👍
data : function() {
return {
msg: 'This Page is for Adding Data',
NameModel: ''
}
}
And v-model must be in <input>
Source:stackexchange.com