nuxt / typescript

TypeScript Support for Nuxt 2

Home Page:https://typescript.nuxtjs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vue property decorator. Custom link with v-text and NuxtLink not work. Typescript

n4an opened this issue · comments

commented

< template > < div > < internal-link :to="localePath(uri)" v-text="text" / > < /div > < /template >

Other component

`< template>
< div>
< NuxtLink
:to="to"
exact
>
< slot name="default" / >
< /NuxtLink>
< /div>
< /template>

< script lang="ts">
import { Component, Prop, Vue } from 'vue-property-decorator'

@component
export default class InternalLink extends Vue {
@prop({ default: '#' })
to: Object|String
}
< /script>`

And the result is < div >Home< /div> and not < div ><a href="home">Home< /a>< /div>

Please create proper reproduction if you are still having this issue.

Expecting us to manually re-assemble your on purpose broken code is a bit too much to ask.

(You can put your code between three backtics on github to have it rendered in plain text)