v-bind ఒక HTML లక్షణం (లేదా భాగం prop) ను JavaScript వ్యక్తీకరణకు డైనమిక్గా బంధిస్తుంది, తద్వారా డేటా మారినప్పుడు లక్షణం ప్రతిస్పందనాత్మకంగా నవీకరించబడుతుంది. దీని సంక్షిప్త రూపం కేవలం :.
<script setup>
import { ref } from "vue";
const imageUrl = ref("/photo.jpg");
const isDisabled = ref(true);
const id = ref("main");
</script>
<template>
<img v-bind:src="imageUrl" /> <!-- full syntax -->
<img :src="imageUrl" /> <!-- shorthand (idiomatic) -->
<button :disabled="isDisabled">Save</button>
<div :id="id" :data-index="5">...</div>
</template>
