{"action":"created","issue":{"url":"https://api.github.com/repos/sialcasa/mvvmFX/issues/154","labels_url":"https://api.github.com/repos/sialcasa/mvvmFX/issues/154/labels{/name}","comments_url":"https://api.github.com/repos/sialcasa/mvvmFX/issues/154/comments","events_url":"https://api.github.com/repos/sialcasa/mvvmFX/issues/154/events","html_url":"https://github.com/sialcasa/mvvmFX/issues/154","id":50387088,"number":154,"title":"Scopes","user":{"login":"lestard","id":328387,"avatar_url":"https://avatars.githubusercontent.com/u/328387?v=3","gravatar_id":"","url":"https://api.github.com/users/lestard","html_url":"https://github.com/lestard","followers_url":"https://api.github.com/users/lestard/followers","following_url":"https://api.github.com/users/lestard/following{/other_user}","gists_url":"https://api.github.com/users/lestard/gists{/gist_id}","starred_url":"https://api.github.com/users/lestard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lestard/subscriptions","organizations_url":"https://api.github.com/users/lestard/orgs","repos_url":"https://api.github.com/users/lestard/repos","events_url":"https://api.github.com/users/lestard/events{/privacy}","received_events_url":"https://api.github.com/users/lestard/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sialcasa/mvvmFX/labels/Feature","name":"Feature","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/sialcasa/mvvmFX/milestones/7","labels_url":"https://api.github.com/repos/sialcasa/mvvmFX/milestones/7/labels","id":883664,"number":7,"title":"1.1.0","description":"","creator":{"login":"lestard","id":328387,"avatar_url":"https://avatars.githubusercontent.com/u/328387?v=3","gravatar_id":"","url":"https://api.github.com/users/lestard","html_url":"https://github.com/lestard","followers_url":"https://api.github.com/users/lestard/followers","following_url":"https://api.github.com/users/lestard/following{/other_user}","gists_url":"https://api.github.com/users/lestard/gists{/gist_id}","starred_url":"https://api.github.com/users/lestard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lestard/subscriptions","organizations_url":"https://api.github.com/users/lestard/orgs","repos_url":"https://api.github.com/users/lestard/repos","events_url":"https://api.github.com/users/lestard/events{/privacy}","received_events_url":"https://api.github.com/users/lestard/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2014-11-28T14:53:07Z","updated_at":"2015-01-05T12:48:56Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2014-11-28T16:05:53Z","updated_at":"2015-02-03T13:02:07Z","closed_at":null,"body":"There should be the possibility to define scopes to group views together. \r\nThis could be implemented in a way that there is a \"Scope-ViewModel\" that is injected into the viewModels."},"comment":{"url":"https://api.github.com/repos/sialcasa/mvvmFX/issues/comments/72646212","html_url":"https://github.com/sialcasa/mvvmFX/issues/154#issuecomment-72646212","issue_url":"https://api.github.com/repos/sialcasa/mvvmFX/issues/154","id":72646212,"user":{"login":"lestard","id":328387,"avatar_url":"https://avatars.githubusercontent.com/u/328387?v=3","gravatar_id":"","url":"https://api.github.com/users/lestard","html_url":"https://github.com/lestard","followers_url":"https://api.github.com/users/lestard/followers","following_url":"https://api.github.com/users/lestard/following{/other_user}","gists_url":"https://api.github.com/users/lestard/gists{/gist_id}","starred_url":"https://api.github.com/users/lestard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lestard/subscriptions","organizations_url":"https://api.github.com/users/lestard/orgs","repos_url":"https://api.github.com/users/lestard/repos","events_url":"https://api.github.com/users/lestard/events{/privacy}","received_events_url":"https://api.github.com/users/lestard/received_events","type":"User","site_admin":false},"created_at":"2015-02-03T13:02:07Z","updated_at":"2015-02-03T13:02:07Z","body":"In the current proposal the scope has no references to the viewmodels at all. Instead the viewModels get the scope injected and have a reference to the scope.\r\nPro:\r\n- You can add new View/ViewModels to the Scope without changing the Scope object. It's more pluggable. Every ViewModel that is interested in the Scope's data can request a Scope instance for injection\r\n\r\nCons:\r\n- The ViewModel is more coupled to the Scope. This way it's not possible to create independend ViewModels that can be used everywhere. Instead they have a reference to a scope that comes from the environment of the ViewModel.\r\n\r\n\r\n"}}