{"action":"opened","issue":{"url":"https://api.github.com/repos/debois/elm-mdl/issues/58","repository_url":"https://api.github.com/repos/debois/elm-mdl","labels_url":"https://api.github.com/repos/debois/elm-mdl/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/debois/elm-mdl/issues/58/comments","events_url":"https://api.github.com/repos/debois/elm-mdl/issues/58/events","html_url":"https://github.com/debois/elm-mdl/issues/58","id":160637688,"number":58,"title":"[QUESTION] A separate model for every component or not?","user":{"login":"not-much-io","id":5730578,"avatar_url":"https://avatars.githubusercontent.com/u/5730578?v=3","gravatar_id":"","url":"https://api.github.com/users/not-much-io","html_url":"https://github.com/not-much-io","followers_url":"https://api.github.com/users/not-much-io/followers","following_url":"https://api.github.com/users/not-much-io/following{/other_user}","gists_url":"https://api.github.com/users/not-much-io/gists{/gist_id}","starred_url":"https://api.github.com/users/not-much-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/not-much-io/subscriptions","organizations_url":"https://api.github.com/users/not-much-io/orgs","repos_url":"https://api.github.com/users/not-much-io/repos","events_url":"https://api.github.com/users/not-much-io/events{/privacy}","received_events_url":"https://api.github.com/users/not-much-io/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-16T11:19:09Z","updated_at":"2016-06-16T11:19:09Z","closed_at":null,"body":"In Component.elm:\r\n\r\n`\r\ntype alias Model = \r\n  { count : Int\r\n  , mdl : Material.Model \r\n      -- Boilerplate: mdl is the Model store for any and all MDL components you need. \r\n  }\r\n`\r\n\r\n\"mdl is the Model store for **any and all MDL components** you need.\" - Okay, nice so I only need one?\r\n\r\nBut in Component.elm:\r\n\r\n`\r\ntype alias Model = \r\n  { count : Int\r\n  , increaseButtonModel : Button.Model\r\n  , resetButtonModel : Button.Model\r\n  }\r\n`\r\n\r\nEee, so do I need to prepare a separate model for every component I add? Don't get me wrong, hyped about the lib even with the boilerplate, but there seems to be a difference in the two examples."}}
{"actor":{"display_login":"not-much-io"}}