Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type alias Form =
- { email : String
- , password: String
- , passwordAgain: String
- , postTitle : String
- , postBody: String
- }
- type alias Model =
- { posts: List Post
- , user: Maybe User
- , route: Route
- , form : Form
- }
- initialModel : Model
- initialModel =
- { posts = List.range 1 10 |> List.map toString |> List.map initialPost
- , user = Nothing
- , route = HomeRoute
- , form = {email = "", password = "", passwordAgain = "", postTitle = "", postBody = ""}
- }
Add Comment
Please, Sign In to add comment