JavaScript

JavaScript

Made by DeepSource

Found invalid v-bind directive JS-0628

Anti-pattern
Minor
vue

The v-bind directive is invalid when:

  • The directive does not have an attribute value.

  • The directive has invalid modifiers.

Bad Practice

<template>
  <div v-bind/>
  <div :aaa/>
  <div v-bind:aaa.bbb="todo"/>
</template>

Recommended

<template>
  <div v-bind="todo"/>
  <div v-bind:aaa="todo"/>
  <div :aaa="todo"/>
  <div :aaa.prop="todo"/>
</template>