I am working with an array of objects called boxData
within my initial data. Is it possible to transform the word "here" into a hyperlink that I can later reference in relation to boxData
?
data() {
return {
boxData: [
{
body: "This is where you'll find the link."
},
{
body: "Just regular text here."
}
]
}
}
Child component
<div v-for="(box, index) in boxData" class="box">
<div>
{{ box.body }}
</div>
</div>