# Computer properties between Components

**URL:** <https://discuss.emberjs.com/t/computer-properties-between-components/5777>\
**Category:** Uncategorized\
**Created:** [June 26, 2014, 5:53pm UTC](https://discuss.emberjs.com/t/computer-properties-between-components/5777 "2014-06-26T17:53:10Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![macu](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/macu/32/5402_2.png) [@macu](https://discuss.emberjs.com/u/macu)\
**Post date:** [June 26, 2014, 6:41pm UTC](https://discuss.emberjs.com/t/computer-properties-between-components/5777/2 "2014-06-26T18:41:59Z")

</div>

If the parent is the enclosing component, and the child component is rendered through the parent’s `{{yield}}` helper, then the child should have access to properties in the parent component via `parentView`. There’s an [outstanding proposal](http://discuss.emberjs.com/t/isolation-of-components-always-required/5036) to rename this to `parentComponent` for components.

Allow the parent template to wrap the child components:

```nohighlight
<script type="text/x-handlebars" id="components/filter-options">
      <h2>{{input type="checkbox" checked=hasSelectAll}} Filter Options</h2>
      {{yield}}
</script>

```

Then make use of the templates like this:

```nohighlight
{{#filter-options}}
     {{filter-option ...}}
     {{filter-option ...}}
{{/filter-options}}

```

And then in the child controller:

```auto
parentHasSelectAll: Ember.computed.oneWay('parentView.hasSelectAll')

```

---

_[View the full topic](https://discuss.emberjs.com/t/computer-properties-between-components/5777)._
