vue-tel-input
vue-tel-input copied to clipboard
I cant get data from this component except the phone number. How can I access the full component data properperty??
After scavenging, I realised that the data shown in the demo can be found on the component.
You can access the the component data attribute or computed attribute via reference.
<template>
<vue-tel-input ref="sample" />
</template>
<script>
export default {
....
computed: {
phoneObject() {
return this.$refs.['sample'].phoneObject;
},
},
}
</script>