# What's the best way to pass a model to a component?

**URL:** <https://forums.bitovi.com/t/whats-the-best-way-to-pass-a-model-to-a-component/191>\
**Category:** CanJS\
**Created:** [March 18, 2016, 1:56am UTC](https://forums.bitovi.com/t/whats-the-best-way-to-pass-a-model-to-a-component/191 "2016-03-18T01:56:38Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![marshallswain](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/marshallswain/32/22_2.png) [@marshallswain](https://forums.bitovi.com/u/marshallswain)\
**Post date:** [March 18, 2016, 3:36am UTC](https://forums.bitovi.com/t/whats-the-best-way-to-pass-a-model-to-a-component/191/4 "2016-03-18T03:36:18Z")

</div>

I think it might be this one: [Using 2.3 binding syntax to import and use partials](http://forums.bitovi.com/t/using-2-3-binding-syntax-to-import-and-use-partials/22)

Does this mean that I should be able to do this:

```auto
<parent-component>
  <can-import from="app-name/models/transaction" {^value}="*TxnModel">
  <child-component {model}="TxnModel"></child-component>
</parent-component>

```

Or would I need to use the \* to pass it into the child-component? Like this:

```auto
<child-component {model}="*TxnModel"></child-component>

```

---

_[View the full topic](https://forums.bitovi.com/t/whats-the-best-way-to-pass-a-model-to-a-component/191)._
