Reputation: 4678
I would like to do this
@click="update_value && selected = true"
Clearly it fails and so does this:
@click="update_value"
@click="selected = true">
How do I run multiple methods from a single event handler without creating a parent function?
Upvotes: 2
Views: 290
Reputation: 4678
Well after 30 minutes:
@click="update_value; selected = true"
However this doesn't work if you try to call multiple methods
@click="update_value; submit_form"
Upvotes: 2