Answer the question
In order to leave comments, you need to log in
VueJS - How to partially render a link?
There is a field:
As when changing this field, its contents were immediately substituted into the link:<input type="text" v-model="client_id">
<a href="https://oauth.vk.com/authorize?client_id={{ client_id }}" class="btn btn-primary"></a>
Answer the question
In order to leave comments, you need to log in
:href="`https://oauth.vk.com/authorize?client_id=${client_id}`"
computed: {
href() {
return `https://oauth.vk.com/authorize?client_id=${this.client_id}`;
},
},
:href="href"
methods: {
href: client_id => `https://oauth.vk.com/authorize?client_id=${client_id}`,
},
:href="href(client_id)"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question