1

Based on what parent component calls the child component (a modal) the text of the modal is be populated with an object passed in as a prop from the parent component.

In one instance, one of the items of the object (modalText) I'm passing in contains a router-link. The element shows up in the console and the text shows up in the browser, but the linking doesn't work.

Parent

modalText: {
  subHeadline: `You can find ${this.name} in the <router-link :to="{name:'PartArea'}">part area</router-link> of your list`,
}

Child (modal)

<h2 v-html="modalText.subHeadline">{{modalText.subHeadline}}</h2>

0 Answers0