Skip to content

View Partial Event Emitters #575

@hdavidzhu

Description

@hdavidzhu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions