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

Adding some info about event callbacks #674

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ijmccallum
Copy link

This may have been a bit 'my bad' for not really realizing about the second argument passed to event callbacks - would have been super handy if I'd known earlier! But, instead of complaining, thought I'd suggest a little addition!

Forgive me if the technical language isn't spot on.

@benadamstyles
Copy link
Collaborator

Thanks for this! @jccazeaux What's the deal with the gh-pages branch now? How should I merge this?

@@ -5,3 +5,40 @@ Binds an event listener on the element using the event specified in `[event]` an
```html
<button rv-on-click="item.destroy">Remove</button>
```

*The callback function is passed 1: an event object and 2: the bound context which will also include named refrences to nested bindings.*
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: references

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants