0👍
Add an ID to the input such as ’emailID’
Then use –
var email = document.getElementById('emailID').value;
Then use –
data () {
return {
'email:' + email
}
}
Or with ES6
data () {
return {
(`email: ${email}`)
}
}
Source:stackexchange.com