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

View Partial Event Emitters #575

Open
hdavidzhu opened this issue Jan 18, 2020 · 0 comments
Open

View Partial Event Emitters #575

hdavidzhu opened this issue Jan 18, 2020 · 0 comments

Comments

@hdavidzhu
Copy link

It would be really convenient if view partials also support event emitters:

<!--
@param {Function} onClick - Custom on-click handler
-->
<some-view:>
  <div>
    <button on-click="@onClick()">Click</button>
  </div>

<usage:>
  <view is="some-view" on-click="onSomeViewClick()"/>

Currently, we need the extra overhead of creating a component for this to be possible.

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