{"action":"created","issue":{"url":"https://api.github.com/repos/Ekito/koin/issues/69","repository_url":"https://api.github.com/repos/Ekito/koin","labels_url":"https://api.github.com/repos/Ekito/koin/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/Ekito/koin/issues/69/comments","events_url":"https://api.github.com/repos/Ekito/koin/issues/69/events","html_url":"https://github.com/Ekito/koin/issues/69","id":302858958,"number":69,"title":"ViewModel with interface","user":{"login":"Shakezulla57","id":20581815,"avatar_url":"https://avatars3.githubusercontent.com/u/20581815?v=4","gravatar_id":"","url":"https://api.github.com/users/Shakezulla57","html_url":"https://github.com/Shakezulla57","followers_url":"https://api.github.com/users/Shakezulla57/followers","following_url":"https://api.github.com/users/Shakezulla57/following{/other_user}","gists_url":"https://api.github.com/users/Shakezulla57/gists{/gist_id}","starred_url":"https://api.github.com/users/Shakezulla57/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shakezulla57/subscriptions","organizations_url":"https://api.github.com/users/Shakezulla57/orgs","repos_url":"https://api.github.com/users/Shakezulla57/repos","events_url":"https://api.github.com/users/Shakezulla57/events{/privacy}","received_events_url":"https://api.github.com/users/Shakezulla57/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-03-06T20:45:42Z","updated_at":"2018-03-09T10:26:04Z","closed_at":"2018-03-09T10:26:04Z","author_association":"NONE","body":"I'm not sure how to setup my module with this example below.\r\n\r\nI have a `ViewModel`\r\n```\r\nclass MyViewModel(private val interactor: Interactor) :\r\n    ViewModel(), SomeInterface<SomeType1, SomeType2> {\r\n.....\r\n}\r\n```\r\n\r\nAnd I have a module\r\n```\r\nval myModule = applicationContext {\r\n    viewModel { MyViewModel(get()) }\r\n    bean { Interactor(get()) }\r\n}\r\n```\r\n\r\nIn my `activity` I have `val viewModel = getViewModel<MyViewModel>()`\r\n\r\nWhen the activity starts it crashes because the `ViewModel` wasn't injected. I'm assuming it has something to do with my `interface` because everything worked fine until I added that. How would I go about resolving my `ViewModel` so I can inject it?\r\n"},"comment":{"url":"https://api.github.com/repos/Ekito/koin/issues/comments/371774182","html_url":"https://github.com/Ekito/koin/issues/69#issuecomment-371774182","issue_url":"https://api.github.com/repos/Ekito/koin/issues/69","id":371774182,"user":{"login":"arnaudgiuliani","id":2360688,"avatar_url":"https://avatars1.githubusercontent.com/u/2360688?v=4","gravatar_id":"","url":"https://api.github.com/users/arnaudgiuliani","html_url":"https://github.com/arnaudgiuliani","followers_url":"https://api.github.com/users/arnaudgiuliani/followers","following_url":"https://api.github.com/users/arnaudgiuliani/following{/other_user}","gists_url":"https://api.github.com/users/arnaudgiuliani/gists{/gist_id}","starred_url":"https://api.github.com/users/arnaudgiuliani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arnaudgiuliani/subscriptions","organizations_url":"https://api.github.com/users/arnaudgiuliani/orgs","repos_url":"https://api.github.com/users/arnaudgiuliani/repos","events_url":"https://api.github.com/users/arnaudgiuliani/events{/privacy}","received_events_url":"https://api.github.com/users/arnaudgiuliani/received_events","type":"User","site_admin":false},"created_at":"2018-03-09T10:26:04Z","updated_at":"2018-03-09T10:26:04Z","author_association":"OWNER","body":"I close the issue. reopen it if needed"}}
{"actor":{"display_login":"arnaudgiuliani"}}