{"action":"created","issue":{"url":"https://api.github.com/repos/aurelia/dependency-injection/issues/122","repository_url":"https://api.github.com/repos/aurelia/dependency-injection","labels_url":"https://api.github.com/repos/aurelia/dependency-injection/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/aurelia/dependency-injection/issues/122/comments","events_url":"https://api.github.com/repos/aurelia/dependency-injection/issues/122/events","html_url":"https://github.com/aurelia/dependency-injection/issues/122","id":173134630,"number":122,"title":"@inject and @customElement","user":{"login":"doktordirk","id":13430091,"avatar_url":"https://avatars.githubusercontent.com/u/13430091?v=3","gravatar_id":"","url":"https://api.github.com/users/doktordirk","html_url":"https://github.com/doktordirk","followers_url":"https://api.github.com/users/doktordirk/followers","following_url":"https://api.github.com/users/doktordirk/following{/other_user}","gists_url":"https://api.github.com/users/doktordirk/gists{/gist_id}","starred_url":"https://api.github.com/users/doktordirk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doktordirk/subscriptions","organizations_url":"https://api.github.com/users/doktordirk/orgs","repos_url":"https://api.github.com/users/doktordirk/repos","events_url":"https://api.github.com/users/doktordirk/events{/privacy}","received_events_url":"https://api.github.com/users/doktordirk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-25T07:44:19Z","updated_at":"2016-08-25T14:28:28Z","closed_at":null,"body":"with following i get the DI unknown key error\r\n```js\r\n@customElement('association-select')\r\n@inject(BindingEngine, EntityManager)\r\nexport class AssociationSelect {\r\n  constructor(bindingEngine, entityManager) {\r\n    this.bindingEngine  = bindingEngine;\r\n    this.entityManager  = entityManager;\r\n  }\r\n```\r\nhowever, following works just fine\r\n```js\r\n@customElement('association-select')\r\n@inject(Container)\r\nexport class AssociationSelect {\r\n  constructor(container) {\r\n    this.bindingEngine  = container.get(BindingEngine);\r\n    this.entityManager  = container.get(EntityManager);\r\n  }\r\n```\r\nthat's with aurelia-cli 0.18.\r\ni tried to debug it further, but to no avail. any idea's what's happening there? why is that internally not just the same?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/aurelia/dependency-injection/issues/comments/242407273","html_url":"https://github.com/aurelia/dependency-injection/issues/122#issuecomment-242407273","issue_url":"https://api.github.com/repos/aurelia/dependency-injection/issues/122","id":242407273,"user":{"login":"doktordirk","id":13430091,"avatar_url":"https://avatars.githubusercontent.com/u/13430091?v=3","gravatar_id":"","url":"https://api.github.com/users/doktordirk","html_url":"https://github.com/doktordirk","followers_url":"https://api.github.com/users/doktordirk/followers","following_url":"https://api.github.com/users/doktordirk/following{/other_user}","gists_url":"https://api.github.com/users/doktordirk/gists{/gist_id}","starred_url":"https://api.github.com/users/doktordirk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doktordirk/subscriptions","organizations_url":"https://api.github.com/users/doktordirk/orgs","repos_url":"https://api.github.com/users/doktordirk/repos","events_url":"https://api.github.com/users/doktordirk/events{/privacy}","received_events_url":"https://api.github.com/users/doktordirk/received_events","type":"User","site_admin":false},"created_at":"2016-08-25T14:28:28Z","updated_at":"2016-08-25T14:28:28Z","body":"it's separate files, but well it's requirejs/aurelia-cli. so, all get's bundled and then yes, then it could be bellow. \r\nthat would would make it somewhat an aurelia-cli issue as well. at least, i've no idea howto enforce some bundling order using aurelia-cli"}}
{"actor":{"display_login":"doktordirk"}}