Back to Developer Roadmap

v-bind

src/data/roadmaps/vue/content/[email protected]

4.0436 B
Original Source

v-bind

The v-bind directive dynamically binds an HTML attribute to data. The shorthand for this directive is :

Example

html
<script setup>
  import { ref } from 'vue';
  const image_url = ref("path/to/image.png")
</script>

<template>
  
</template>

Visit the following resources for more information: