On Saturday, January 7, 2017 at 11:19:00 AM UTC, Peter Damoc wrote: > > Now, is it possible to start a potential Elm program and embed it in the > constructor or in the onAttached handler? >
Peter, it most certainly is possible. Here is how I start up Elm in the webcomponents I trialled with Polymer: attached() { app = Elm.Listbox.embed(this); this._itemsChanged(this.items, []); this._initiallySelectedChanged(this.initiallySelected, []); app.ports.setSelected.subscribe(items => { this.selected = items; }); } -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.