Slide 29
Slide 29 text
module Page.X exposing (..)
type alias Model =
{ session : Session
, ...
}
init : Session -> Model -> (Model, Cmd Msg)
update : Msg -> Model -> (Model, Cmd Msg)
view : Model -> Html Msg
-- Main.elm passes session type which contains
-- various contexts such as user/credential,
-- cached data, etc.