Skip to content

v-link-active does not work when v-link is on a component #383

@simplesmiler

Description

@simplesmiler

Repro: http://jsfiddle.net/simplesmiler/g61g06gr/

I found this while playing around with the idea of BEM directive. I needed a way to look up the local DOM tree for the directive that defined a block, and I decided to follow the example of v-link/v-link-active of setting a custom flag on the element. But apparently this does not work when v-link is put on the component, because component node is compiled before the rest of the template.

Is there any other way for two vertically separated directives to talk?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions