Computer scienceFrontendVue.jsVue 3 SyntaxVue Directives

v-bind

Theory

Image

Report a typo

You have a starting template for your app. Add an img tag with correct src binding from state. You only need to write one line.

<script setup>
import { ref } from 'vue';

const link = ref("https://images.unsplash.com/photo-1599488615731-7e5c2823ff28?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=387&q=80");

</script>

<template>
 // your code here
</template>
Enter a short text
___

Create a free account to access the full topic