<script>
export default {
  name: "RegistrationComponent",
  data: function () {
    return {
      user: {
        name:'Richard Zhang',
        email:'RichardZhang@gmail.com',
        password:'12345678',
      }
    }
  },
  methods:{
    register: function () {
      console.log(this.user);
    }
  }
}
</script>

<template>
  <pre>{{user}}</pre>
<div class="container">
  <div class="row">
    <div class="col-md-3">
      <div class="card">
       <div class="card-header bg-success text-white">
         <p class="h3 m-1">Register Here</p>
         <div class="card-body bg-light text-white">
           <form @submit.prevent="register">
             <div class="mb-2">
               <input type="text" v-model:="this.user.name" placeholder="Name" class="form-control">/>
               <input type="email" v-model:="this.user.email" placeholder="Email" class="form-control">/>
               <input type="password"  v-model:="this.user.password" placeholder="Password" class="form-control">/>
               <input type="submit"  placeholder="Name" class="btn btn-success">/>

             </div>
           </form>
         </div>
       </div>


      </div>
    </div>
  </div>
</div>
</template>

<style scoped lang="css">

</style>
