elm-web-components
elm-web-components copied to clipboard
Add example with port that triggers a custom event
I need elm to be able to communicate back to js so an example that demonstrated that all worked would be great
It looks to me that you need to provide the webcomp to the setupPorts call back so that it can be used with dispatchEvent
var self = this;
setupPorts(elmElement.ports, self);