Created
May 13, 2017 12:33
-
-
Save ronanyeah/96b55034e7193a902d0c8a38f26fbb09 to your computer and use it in GitHub Desktop.
Inject initial values into Elm using Phoenix.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="<%= static_path(@conn, "/js/admin.js") %>"></script> | |
<script> | |
Elm.Main.fullscreen({ first_name: "<%= @data.first_name %>" }); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Phoenix side is: