How to create interface or class and create object and assign the template values to object and print it on console?
<template>
<input type="text" id="name" v-model="name" placeholder="name">
<input type="email" id="email" v-model="email" placeholder="email">
</template>
@Component({
})
export default class example extends Vue({
data(
return {
name: '',
email: '',
}}
})
v-modelshould automatically bind the input values on the data object properties.