send information to database in vue
fetch('https://your_firebase.com/form.json' , {
method:'POST'
,headers:{
'Content-Type':'application/json'
},body:JSON.stringify({user_name:this.user_name,
user_last_name:this.user_last_name,
user_email:this.user_email,
user_country:this.user_country})
}).then(()=>{
this.$emit('send' , {user_name:this.user_name , user_last_name:this.user_last_name , user_email:this.user_email , user_country:this.user_country})
this.show_anim = true
this.user_name = '';
this.user_email = '';
this.user_last_name = '';
this.user_country = '';
})