0
That’s roughly the equivalent of:
data() {
const {errorMessages, handleInput, setFieldData} = Validator.register(this._props);
return {
errorMessages,
handleInput,
input // undefined btw
}
}
You can alternatively install the composition api in Vue 2:
npm install @vue/composition-api
import Vue from 'vue'
import VueCompositionAPI from '@vue/composition-api'
Vue.use(VueCompositionAPI)
- [Vuejs]-How I can call NuxtServerInit correctly?
- [Vuejs]-Vuejs variable from another js file is not updating
Source:stackexchange.com