{"action":"created","issue":{"url":"https://api.github.com/repos/aurelia/templating-resources/issues/222","repository_url":"https://api.github.com/repos/aurelia/templating-resources","labels_url":"https://api.github.com/repos/aurelia/templating-resources/issues/222/labels{/name}","comments_url":"https://api.github.com/repos/aurelia/templating-resources/issues/222/comments","events_url":"https://api.github.com/repos/aurelia/templating-resources/issues/222/events","html_url":"https://github.com/aurelia/templating-resources/issues/222","id":154286709,"number":222,"title":"Composing a view can access the parent property","user":{"login":"leon-andria","id":1230744,"avatar_url":"https://avatars.githubusercontent.com/u/1230744?v=3","gravatar_id":"","url":"https://api.github.com/users/leon-andria","html_url":"https://github.com/leon-andria","followers_url":"https://api.github.com/users/leon-andria/followers","following_url":"https://api.github.com/users/leon-andria/following{/other_user}","gists_url":"https://api.github.com/users/leon-andria/gists{/gist_id}","starred_url":"https://api.github.com/users/leon-andria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leon-andria/subscriptions","organizations_url":"https://api.github.com/users/leon-andria/orgs","repos_url":"https://api.github.com/users/leon-andria/repos","events_url":"https://api.github.com/users/leon-andria/events{/privacy}","received_events_url":"https://api.github.com/users/leon-andria/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-11T16:30:08Z","updated_at":"2016-05-11T16:34:42Z","closed_at":null,"body":"We have 2 views: main.html and child.html.\r\nInside main.html, we do a compose on child.html:\r\n```\r\n <compose view-model=\"child\"></compose>\r\n```\r\nNote that no model is passed.\r\nNow, in main.js, we specify in the activate method:\r\n```\r\nthis.manouche = \"Hello\";\r\n```\r\n\r\nNow, in child.html:\r\n```\r\n  <p>${manouche}</p>\r\n```\r\nThe result is that in the child.html, we got \"Hello\".\r\nDoes this is an expected behavior or it's a bug ? This means Compose can inherits from its parent ?"},"comment":{"url":"https://api.github.com/repos/aurelia/templating-resources/issues/comments/218515580","html_url":"https://github.com/aurelia/templating-resources/issues/222#issuecomment-218515580","issue_url":"https://api.github.com/repos/aurelia/templating-resources/issues/222","id":218515580,"user":{"login":"alvarezmario","id":834969,"avatar_url":"https://avatars.githubusercontent.com/u/834969?v=3","gravatar_id":"","url":"https://api.github.com/users/alvarezmario","html_url":"https://github.com/alvarezmario","followers_url":"https://api.github.com/users/alvarezmario/followers","following_url":"https://api.github.com/users/alvarezmario/following{/other_user}","gists_url":"https://api.github.com/users/alvarezmario/gists{/gist_id}","starred_url":"https://api.github.com/users/alvarezmario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alvarezmario/subscriptions","organizations_url":"https://api.github.com/users/alvarezmario/orgs","repos_url":"https://api.github.com/users/alvarezmario/repos","events_url":"https://api.github.com/users/alvarezmario/events{/privacy}","received_events_url":"https://api.github.com/users/alvarezmario/received_events","type":"User","site_admin":false},"created_at":"2016-05-11T16:34:42Z","updated_at":"2016-05-11T16:34:42Z","body":"@leon-andria yep, compose inherits from its parent. In any case, someone from the core team should be more suitable for the final answer"}}