Skip to content

Instantly share code, notes, and snippets.

@emanchado
Created October 14, 2016 11:33
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 emanchado/2062da6bb83bc7ce6c7f4e94484f2570 to your computer and use it in GitHub Desktop.
Save emanchado/2062da6bb83bc7ce6c7f4e94484f2570 to your computer and use it in GitHub Desktop.
view : Model -> Html Msg
view model =
div []
[ button [ onClick Decrement ] [ text "-" ]
, div [ countStyle ] [ text (toString model.count) ]
, button [ onClick Increment ] [ text "+" ]
, span [] [ text (" Min: " ++ (toString model.minCount)) ]
, span [] [ text (" Max: " ++ (toString model.maxCount)) ]
, span [] [ text (" Times clicked: " ++ (toString model.numberClicks)) ]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment