I am having an issue.
I want to create a Vue.js Component.
This component displays an image, similar to the <img>
tag. If you are familiar with the <img>
tag, this question should be easy for you to understand.
Here is the code I have:
props: ['link,des'],
template: '<img :src={{ link }} :alt={{ des }}></img>'
}),
This code is written in JavaScript.
Below is the HTML code:
<image link="https://kr.vuejs.org/images/logo.png" des="sans"></image>
Please answer kindly. Thank you