[Vuejs]-Make link from an url from data Vue

0๐Ÿ‘

I think I did catch what you meant to say, you want to print a url underlined just like the <a> tag does? then you should use that <a> tag!

Like this:

<a :href="url">{{url}}</a>
export default {
    data () {
        return {
            url: "https://media.giphy.com/media/13VFATn4bxBCXm/giphy.gif",
        }
    }
}

Using : before the attribute href to bind it

Leave a comment