Skip to content

Instantly share code, notes, and snippets.

@leojpod
Created May 15, 2017 09:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leojpod/233773de4f1b44c449165c5af4bea4b3 to your computer and use it in GitHub Desktop.
Save leojpod/233773de4f1b44c449165c5af4bea4b3 to your computer and use it in GitHub Desktop.
elm-mdl model
alias Model =
{ ... -- your usual model definition goes here
, mdl :
Material.Model
-- use elm-mdl's definition of their model
}
model : Model
model =
{ ... -- your initialization goes here
, mdl =
Material.model
-- use elm-mdl's initial setup of the model
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment