-
-
Notifications
You must be signed in to change notification settings - Fork 505
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
Improve explanation of passing actions (#162) #177
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This update seems great to me! I just left one formatting comment, but otherwise this seems already good to go to me ✨
```handlebars {data-filename=app/templates/index.hbs} | ||
{{button-with-confirmation | ||
text="Click here to unsubscribe." | ||
onConfirm=(action 'unsubscribe') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be good to update the quotes here in the action
helper, too, to also use the double quoted version as the other string expression in the template examples:
(action "unsubscribe")
I've updated the formatting of the quotes as instructed ☕️ 😄 |
``` | ||
|
||
It is important to note that actions can only be passed from a controller or another | ||
component. They cannot be passed from a route. See [passing an action to the component](/triggering-changes-with-actions/#toc_passing-the-action-to-the-component) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1347823
to
f795ef1
Compare
f795ef1
to
2d9147f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works great locally, thank you for this update @Parrryy ✨
First draft for #162