This talk was given in the first-ever Elm Remote Meetup.
Components formanaging input and stateOssi Hanhinen@ohanhi
View Slide
The Elm ArchitectureMsg UpdateUser ViewModelView
main =Html.App.program{ init = init, view = view, update = update, subscriptions = subscriptions}
App ComponentInit Model, Cmd Msg
App ComponentInit Model, Cmd MsgMsg, Model Update Model, Cmd Msg
Init Model, Cmd MsgMsg, Model Update Model, Cmd MsgApp Components NestInit Model, Cmd MsgMsg, Model Update Model, Cmd Msg
App Components’ Public APIMsg, Model Update Model, Cmd MsgInit Model, Cmd Msg
App Components’ Public APIMsg, Model Update Model, Cmd MsgMsg Model Model Cmd MsgInit Model, Cmd Msg
Extending the PatternMsg ModelUpdateInitSome extra Model, Cmd MsgMsg, Model Some extra, Model, Cmd Msg
Don’t limit yourselfto just init, updateand view!