Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # 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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant