[Vuejs]-VueJs โ€“ Set property in child component's $options based on prop

0๐Ÿ‘

โœ…

I was able to achieve what I wanted with.

    props: {
      translationFile: {
        type: String,
        required: true
      }
    }
    mounted() {
      this.$options.translationFile = this.translationFile
    }

but any components which depended on this needed to be wrapped with <client-only></client-only>

Leave a comment