I don't know what I messed up before. Confirm. Elm.Main.embed(node, flags) works. Thanks.
On Wednesday, June 8, 2016 at 9:41:03 PM UTC+1, Nick H wrote: > > That function signature you are quoting is for an Elm function called > Html.embed. It completely unrelated to the JavaScript "embed" function that > we are discussing here. The documentation relevant to what you are trying > to do is located here <http://guide.elm-lang.org/interop/html.html>. > > The correct usage should be Elm.Main.embed(node, flags). At least, it > seems to be working in my own code. Could you provide us with a sample of > your code where you are calling Elm.main.embed, and what error message are > you getting when you try to use it? > > On Wed, Jun 8, 2016 at 1:12 PM, Jaroslaw Zabiello <[email protected] > <javascript:>> wrote: > >> Really? How to pass flags to Elm.Main.embed? None of those work: >> Elm.Main.embed(node, flags), Elm.Main.embed(flags, >> node), Elm.Main.embed([node], [flags]). >> >> The definition "embed : List (Attribute msg) -> List (Html msg) -> Html >> msg" is too unclear for me. There should be some examples added to API defs. >> >> >> On Wednesday, June 8, 2016 at 3:31:13 AM UTC+1, Frederick Yankowski wrote: >>> >>> `Html.App.programWithFlags` works fine with `embed()`, not just >>> `fullscreen()`. >>> >>> -- >> 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 [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
