Skip to content

Files

Latest commit

 

History

History
28 lines (17 loc) · 606 Bytes

no-v-model-argument.md

File metadata and controls

28 lines (17 loc) · 606 Bytes

Pattern: Adding an argument to v-model used in custom component

Issue: -

Description

This rule reports v-model directives in the following cases:

  • The directive used on component has an argument. E.g. <MyComponent v-model:aaa="foo" />
<template>
  <!-- ✓ GOOD -->
  <MyComponent v-model="foo" />


  <!-- ✗ BAD -->
  <MyComponent v-model:aaa="foo" />
</template>

Further Reading