Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directive method calls don't support object params #242

Closed
destroytoday opened this issue Apr 16, 2014 · 2 comments
Closed

Directive method calls don't support object params #242

destroytoday opened this issue Apr 16, 2014 · 2 comments
Labels

Comments

@destroytoday
Copy link

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.

@yyx990803 yyx990803 added the bug label Apr 16, 2014
@yyx990803
Copy link
Member

This is caused by the parser treating column as an identifier. Current solution is use a method instead of inline expression before it gets fixed.

@destroytoday
Copy link
Author

Sounds good.

yyx990803 pushed a commit that referenced this issue Apr 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants