I've recently started using Vue.js with TypeScript, but I'm having trouble accessing values from outside the class.
@Component({
name: 'SidebarItem',
components: {
SidebarItemLink
}
})
export default class extends Vue {
get someValue(){
return 1234
}
}
When I try to display the value of someValue(), I receive an unresolved variable error.
<template>
<div>
<p>{{some value}}</p>
</div>
</template>
Any suggestions on how to resolve this issue?
Thanks!