Skip to content

Directive method calls don't support object params #242

Closed
@destroytoday

Description

@destroytoday

I have a directive that calls a sort method and passes an object of options:

<a v-on='click: sortRows({ column: "name" })'>Name</a>

...but, I get two errors:

Error parsing expression: sortRows({ column: "name" })
Directive "v-on:click: sortRows({ column: "name" })" expects a method.

I would expect this to work instead of accepting only primitive params.

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