{"action":"opened","issue":{"url":"https://api.github.com/repos/angular/angular/issues/3655","labels_url":"https://api.github.com/repos/angular/angular/issues/3655/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/3655/comments","events_url":"https://api.github.com/repos/angular/angular/issues/3655/events","html_url":"https://github.com/angular/angular/issues/3655","id":101121517,"number":3655,"title":"Bound components showing up twice in @Query children ","user":{"login":"typotter","id":9689485,"avatar_url":"https://avatars.githubusercontent.com/u/9689485?v=3","gravatar_id":"","url":"https://api.github.com/users/typotter","html_url":"https://github.com/typotter","followers_url":"https://api.github.com/users/typotter/followers","following_url":"https://api.github.com/users/typotter/following{/other_user}","gists_url":"https://api.github.com/users/typotter/gists{/gist_id}","starred_url":"https://api.github.com/users/typotter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/typotter/subscriptions","organizations_url":"https://api.github.com/users/typotter/orgs","repos_url":"https://api.github.com/users/typotter/repos","events_url":"https://api.github.com/users/typotter/events{/privacy}","received_events_url":"https://api.github.com/users/typotter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-14T23:28:28Z","updated_at":"2015-08-14T23:28:28Z","closed_at":null,"body":"Binding a component to a token in both `bindings` and `viewBindings` results in the component appearing twice in the children list, injected by @Query.\r\n\r\nex:\r\n\r\n```\r\n@Component(\r\n  selector: 'foo',\r\n  bindings: const [ const Binding(SomeInterface, toAlias: FooComponent)],\r\n  viewBindings: const [ const Binding(SomeInterface: toAlias: FooComponent)])\r\nclass FooComponent {\r\n  FooComponent(@Query(SomeInterface) myChildren) {\r\n    myChildren.onChange(() {\r\n      print(myChildren.toList().length);\r\n    });\r\n}\r\n```\r\nprints 2"}}