Broken v-on inside component
See original GitHub issueThis 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/
Issue Analytics
- State:
- Created 8 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Natbib 'numbers' option breaks capitalization of "von ...
The \Citet command, however, seems to be broken when the numbers option is used. In this case, the "von" component is left uncapitalized....
Read more >Broken and Dirty Development Components (SAP-Bibliothek ...
Sometimes the Component Build Service (CBS) reports about broken development components (DCs). This topic explains what exactly a broken DC is in CBS...
Read more >Bug: React 18 types broken since the type release a ... - GitHub
A few hours ago, a major version of React types for Typescript was released. I have tried to test this right away to...
Read more >Broken Vow - Mike & Ginger React to Lara Fabian - YouTube
playitagain #mikeandginger #musicreactions #reaction #reactionchannel #music #larafabian #larafabianreaction #brokenvow ...
Read more >Von Willebrand Disease: What It Is, Types, Symptoms ...
Von Willebrand disease is a common blood disorder that keeps your blood from clotting.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh, you probably posted it intentionally for newbies, sorry.
Hello @yyx990803
I am using
vue 1.0.20
and just came across this issue. Is there something else related to this?