Skip to content

vue/valid-v-model ​

Fix the v-model directive — it must bind to a writable expression

PropertyValue
CategoryCorrectness
Default Severityerror
Confidencehigh
FixableNo
Engineeslint-template
Sincev1.0.0
Frameworksvue, nuxt

Why it matters ​

Fix the v-model directive — it must bind to a writable expression

How to fix ​

Review the finding and update the code according to best practices below.

Agent Guidance ​

Bind v-model to a writable variable or property; do not use it on a v-for alias, literal or computed expression.


Rule source: vue/valid-v-model

Released under the MIT License.