Within the settings of my component, there is an option called "my_plugin".
<script>
export default {
ready () {
// ...
},
my_plugin: 'test'
}
</script>
My goal is to access the value of 'my_plugin' within my plugin. How can I achieve this?
export default function (Vue) {
Vue.prototype.$plugin = (key) => {
console.log(this.$options.my_plugin)
return key
}
}