From Vue 2.3.0 on you can use the .sync
modifier:
Sample from https://v2.vuejs.org/v2/guide/components-custom-events.html#sync-Modifier:
<text-document :title.sync="title"></text-document>
and in your controller…
this.$emit('update:title', newTitle)
Related Contents:
- Why does Prettier not format code in VS Code?
- Call a Vue.js component method from outside the component
- How to watch store values from vuex?
- VueJS conditionally add an attribute for an element
- How to change port number in vue-cli project
- Do we have router.reload in vue-router?
- Mouseover or hover vue.js
- Vue.js getting an element within a component
- How to access to a child method from the parent in vue.js
- In Vue JS, call a filter from a method inside the vue instance
- Vuex: Access State From Another Module
- What’s the correct way to pass props as initial data in Vue.js 2?
- Is there a proper way of resetting a component’s initial data in vuejs?
- NavigationDuplicated Navigating to current location (“/search”) is not allowed
- How to disable ESLint in vue-cli?
- Vue.js unknown custom element
- How to navigate using vue router from Vuex actions
- vuexjs getter with argument
- Call parent method with component
- VueJS: why is “this” undefined?
- How to call multiple functions with @click in vue?
- VueJs templating. How to load external templates
- vue.js auto reload / refresh data with timer
- How to use props in in vue3
- Vue.js ref inside the v-for loop
- Conflict on Template of Twig and Vue.js
- Vue.JS – how to use localStorage with Vue.JS
- How do I reverse the order of an array using v-for and orderBy filter in Vue JS?
- Error: Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as
- How could I use const in vue template?
- Vuex 2.0 Dispatch versus Commit
- How do I set up ASP.NET Core + Vue.js?
- Vue JS 2.0 not rendering anything?
- How to use enums (or const) in VueJS?
- importing a package in ES6: “Failed to resolve module specifier “vue””
- Get element height with Vuejs
- accessing vuex store in js file
- Vue JS: Difference of data() { return {} } vs data:() => ({ })
- Async Computed in Components – VueJS?
- Property ‘XXX’ does not exist on type ‘CombinedVueInstance’
- Vue.js “Maximum call stack size exceeded” error. Passing data from parent to child failing
- How to format numbers in VueJS
- How to run VueJS code only after Vue is fully loaded and initialized?
- Set initial vuetify v-select value
- Vue 2 – How to set default type of array in props
- How vuejs knows the depenedencies of computed property for caching?
- What is difference between ‘data:’ and ‘data()’ in Vue.js?
- What is better in vue.js 2, use v-if or v-show?
- Vuejs 3 webpack : Problem with vue-template-compiler
- How to format Vuetify data table date column?