v-bind

up:: Vue Directives

Binding values

Warning

Vue Data Binding only works between html tags. Setting the href of an a within a p does not work.

You need to use binding when you want to set a value on a html object.

<p>Learn more<a v-bind:href="vueLink">about Vue</a></p>

Shorthand:

<p>Learn more<a :href="vueLink">about Vue</a></p>