Sunday, 18 August 2013

Component, controller and context: wrong controller inside the component?

Component, controller and context: wrong controller inside the component?

I'm using ember.js 1.0.RC6
I have created a component (options-carousel) and I would like to render
content inside this component.
The first {{controller}}{{test}} is displaying the correct value for test
from the controller.
The second {{controller}}{{test}} is displaying the
OptionsCarouselComponent for the controller and nothing for the test
(because it seems a bad reference to the controller).

<div class="active item">
{{controller}}{{test}}
</div>
{{/options-carousel}}

No comments:

Post a Comment