-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Closed
Description
This used to work but after upgrading a few versions it doesn't work anymore and i cant figure out why.
<div v-component="card">
<button v-on="click:clicked($event)">Click me 1</button>
<button v-on="click:clicked">Click me 2</button>
</div>
My code generates 2 errors depending on how i call the function inside v-on
.
v-on="click:clicked($event)"
generates Uncaught TypeError: scope.clicked is not a function
and
v-on="click:clicked"
generates [Vue warn]: Directive "v-on:clicked" expects a function value.
I would like to pass the event object to the method.
Heres the fiddle: http://jsfiddle.net/ypsscvy5/
Metadata
Metadata
Assignees
Labels
No labels