Hi I have a code like this in VueJs:
methods: {
copyUrl(data) {
console.log(data);
data.select();
document.execCommand("copy");
}
}
My button is:
<button v-on:click="copyUrl('1234')" class="btn btn-primary btn-circle btn-sm">
<i class="fas fa-link"></i>
</button>
I wonder how can I copy the 1234? I mean I need to create a url copy button.
Thanks