Skip to main content
Correct markup
Source Link
Riza Khan
  • 3.1k
  • 5
  • 28
  • 59

You can use

<router-link <component
  :is="isDisabled ? 'span' : 'router-link'"
  to="/link"
>
  /link
</router-link>component>

You can use

<router-link 
  :is="isDisabled ? 'span' : 'router-link'"
  to="/link"
>
  /link
</router-link>

You can use

<component
  :is="isDisabled ? 'span' : 'router-link'"
  to="/link"
>
  /link
</component>
Source Link

You can use

<router-link 
  :is="isDisabled ? 'span' : 'router-link'"
  to="/link"
>
  /link
</router-link>