Skip to content

Using filters inside attributes with Vue 2.0 #4080

@callumacrae

Description

@callumacrae

Both of the following work in Vue 1:

<a href="{{ 'something' | linkHandler }}">link</a>
<a :href="'something' | linkHandler">link</a>

Neither of them work in Vue 2.0, because you can only use filters inside interpolations, and you can't use interpolations as attributes anymore.

Any way around this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions