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

add send helper #20

Merged
merged 1 commit into from
Feb 24, 2017
Merged

add send helper #20

merged 1 commit into from
Feb 24, 2017

Conversation

kellyselden
Copy link
Contributor

This allows you to call actions on the reference from the template. emit is a jQuery term I believe, we could name it something like invoke or something else, doesn't matter.

@GavinJoyce
Copy link
Owner

Thanks @kellyselden, this looks great.

What do you think of naming it send instead of emit?

{{name-form actionReceiver=nameForm}}

<button {{action (send nameForm "reset")}}>Reset</button>

@kellyselden
Copy link
Contributor Author

I like that name. Updated.

@GavinJoyce GavinJoyce merged commit 5214082 into GavinJoyce:master Feb 24, 2017
@GavinJoyce
Copy link
Owner

Thanks @kellyselden 🍻

@GavinJoyce GavinJoyce changed the title add emit helper add send helper Feb 24, 2017
@kellyselden kellyselden deleted the emit branch February 24, 2017 23:12
@kellyselden kellyselden mentioned this pull request Mar 2, 2017
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.

None yet

2 participants