[Vuejs]-Property or method "name" is not defined on the instance but referenced during render in vuejs?

1👍

 <input v-model="name" type="text" class="form-control" />

should be

 <input v-model="newUser.name" type="text" class="form-control" />

as you defined the data as {newUser: {name: ""}}.

do same to your other fields such as email

👤Hank X

Leave a comment