{"action":"created","issue":{"url":"https://api.github.com/repos/canjs/canjs/issues/2416","repository_url":"https://api.github.com/repos/canjs/canjs","labels_url":"https://api.github.com/repos/canjs/canjs/issues/2416/labels{/name}","comments_url":"https://api.github.com/repos/canjs/canjs/issues/2416/comments","events_url":"https://api.github.com/repos/canjs/canjs/issues/2416/events","html_url":"https://github.com/canjs/canjs/issues/2416","id":159598928,"number":2416,"title":"Add alias for child viewModel","user":{"login":"gsmeets","id":2570742,"avatar_url":"https://avatars.githubusercontent.com/u/2570742?v=3","gravatar_id":"","url":"https://api.github.com/users/gsmeets","html_url":"https://github.com/gsmeets","followers_url":"https://api.github.com/users/gsmeets/followers","following_url":"https://api.github.com/users/gsmeets/following{/other_user}","gists_url":"https://api.github.com/users/gsmeets/gists{/gist_id}","starred_url":"https://api.github.com/users/gsmeets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsmeets/subscriptions","organizations_url":"https://api.github.com/users/gsmeets/orgs","repos_url":"https://api.github.com/users/gsmeets/repos","events_url":"https://api.github.com/users/gsmeets/events{/privacy}","received_events_url":"https://api.github.com/users/gsmeets/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-10T09:49:46Z","updated_at":"2016-06-10T15:26:55Z","closed_at":"2016-06-10T15:26:55Z","body":"There's no way to alias the child event viewmodel. If I want to refer to it I have to alias the viewmodel with a reference binding:\r\n\r\n```\r\n<my-foo>\r\n    <my-bar *bar\r\n        (some-event)=\"doSomething(*bar)\"\r\n    />\r\n/>\r\n```\r\n\r\nI'd like to reference to that *bar implicitly, just like I can reference the current scope with `this` or `.`."},"comment":{"url":"https://api.github.com/repos/canjs/canjs/issues/comments/225213942","html_url":"https://github.com/canjs/canjs/issues/2416#issuecomment-225213942","issue_url":"https://api.github.com/repos/canjs/canjs/issues/2416","id":225213942,"user":{"login":"justinbmeyer","id":78602,"avatar_url":"https://avatars.githubusercontent.com/u/78602?v=3","gravatar_id":"","url":"https://api.github.com/users/justinbmeyer","html_url":"https://github.com/justinbmeyer","followers_url":"https://api.github.com/users/justinbmeyer/followers","following_url":"https://api.github.com/users/justinbmeyer/following{/other_user}","gists_url":"https://api.github.com/users/justinbmeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/justinbmeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinbmeyer/subscriptions","organizations_url":"https://api.github.com/users/justinbmeyer/orgs","repos_url":"https://api.github.com/users/justinbmeyer/repos","events_url":"https://api.github.com/users/justinbmeyer/events{/privacy}","received_events_url":"https://api.github.com/users/justinbmeyer/received_events","type":"User","site_admin":false},"created_at":"2016-06-10T15:26:55Z","updated_at":"2016-06-10T15:26:55Z","body":"You can use `%viewModel`"}}
{"actor":{"display_login":"justinbmeyer"}}