In my Elm program, I would like to initialize my model based on the query string.
For example, if the query string is ?w=3&h=5 , I would like:
initialModel = { width = 3 , height = 5 }
Is it possible to achieve this in Elm, or the only way to do this is to get the request parameters in Javascript and pass them through the port?
elm
Misha moroshko
source share