Skip to content

v-can directive not working for <template> #23

@TullariS

Description

@TullariS

Hi,

v-can directive is not working for . If i use any other tag (Vue component or HTML) it works.

None of the combinations work:

  • <template v-can="'verb Subject'">
  • <template v-can="['verb', 'Subject']">
  • <template v-can:verb="'Subject'">

It does work if you use the helper:

<template v-if="$can('verb', 'Subject')">

Is this something that can be fixed or I'll just have to work around it?

Thank you. Awesome module!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions