Is it possible to access a global property from my vue instance when setting a default prop value in my component?
This is what I would like to achieve
props: {
id: {
type: String,
default: this.$utils.uuid
}
}
I attempted to use an arrow function without any success
props: {
id: {
type: String,
default: () => this.$utils.uuid
}
}