-
Notifications
You must be signed in to change notification settings - Fork 3
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
on-click with parameter #3
Comments
Bump |
@jamiechong @emablekos Tell me if this is sufficient for you: Instead of limitation of one param, you can now do this: {{em-button prop=x prop1=y on-click='submit'}} Then in controller: actions {
submit: function(setPromise, button) {
button.get('prop') // retrieve value of x
}
} |
That looks like it should work! |
ok, I pushed it. |
Has the npm package been updated? I'm using ember-cli |
@asaf The npm package is not the latest, can you update it? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there anyway to pass a parameter to the on-click attribute? Similar to the
{{action}}
helper?I'm trying to use
em-button
instead of this:<button {{action 'auth' 'facebook'}}>Login With Facebook</button>
The text was updated successfully, but these errors were encountered: