[WICG/webcomponents] CustomEvents Add Event Handler in Html (#908)

Hello all,

it would save a lot of work if I could add event handlers this way.
Also in regard to third party frameworks like Blazor, Angular, Vue etc.

`<my-component onmycustomevent="(function()(e) => alert(`MyEventValue: ${e.detail.myeventvalue}`))();></my-component>`

Instead of having to define the eventhandler always in javascript with `component.addEventListener()`

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/908

Received on Tuesday, 10 November 2020 11:19:53 UTC