<form v-on:submit="addProduct">
<input type="text" v-model="name" placeholder="Product Name" >
<input type="number" v-model="price" placeholder="Price" >
<button type="submit">Add</button>
</form>
Run code snippet