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

How 'bout them Actions #20

Open
CharlieHess opened this issue Feb 27, 2017 · 0 comments
Open

How 'bout them Actions #20

CharlieHess opened this issue Feb 27, 2017 · 0 comments

Comments

@CharlieHess
Copy link
Collaborator

Say I want a selectChannel action that happens down in a ChannelViewModel. I want that to bubble up to its parent ChannelListViewModel:

  1. If I declare the action in ChannelListViewModel I can wire its result up to a property right there, but there's not a good way for the ChannelViewModel to invoke the action with some information.
  2. If I declare the action in ChannelViewModel and try to do toProperty(parentViewModel, 'selectedChannel'), it doesn't work with a when selector. I think because the parent hasn't defined the property yet.
@CharlieHess CharlieHess added this to the Design, Form, and Chaos milestone Feb 27, 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

No branches or pull requests

1 participant