mirror of
https://github.com/jlengrand/elm-ports.git
synced 2026-03-10 08:11:24 +00:00
master
Elm Ports and Flags
This repository is a simple Elm (0.19) minimal app making use of Flags and Ports to communicate with Javascript.
The repository is composed of 3 main things to see :
- The
sendStuffport, which will send some test data to Javascript every time you press the button - The
receiveStuffport, which will periodically receive data from Javascript. It is javascript that triggers the port, and Elm will update its model every time it receives data. - The
Flagstype alias, that is setup and is used by theinitfunction to grab data from Javascript before the model is even generated.
You can read the complete write-up about this example here and see a running example here.
Description
Languages
JavaScript
56.7%
Elm
30.5%
HTML
9.6%
CSS
3.2%