You can use the same mount point and dynamically switch between multiple components using the reserved
<component>
element and dynamically bind to itsis
attribute:https://vuejs.org/v2/guide/components.html#Dynamic-Components
This rule reports the <component>
elements which do not have v-bind:is
attributes.
👎 Examples of incorrect code for this rule:
<template>
<component></component>
</template>
👍 Examples of correct code for this rule:
<template>
<component :is="type"></component>
</template>
Nothing.