@fasih wrote:
Currently I have an Ember 1.12 application within my Rails application. I'm upgrading to Ember 1.13. The biggest thing is converting all our existing views into components. I've gone through and done the basic small components, but now I've moved onto the page views (model_index, model_show, model_manage for example).
I can't seem to get the component rendered/loaded through routing. If for example I visit
/posts
, I'd want the Post index component (posts_index_component.coffee
) to be rendered. But this doesn't happen.My
application.hbs
is simply:<div> {{outlet}} </div>
Currently what happens is that it'll find the template under
templates/posts/
asindex.hbs
and render that, but it doesn't set up with the component. I try adding a log/debugger in thedidRender
within thecomponents/posts_index_component
and nothing comes up. If the view file still existing, as inviews/posts_index_view.coffee
, then that will actually get loaded. I tried moving the template fromtemplates/posts/
totemplates/components/posts
and renamed the template toposts-index.hbs
and still nothing.Do I have to configure my Router to have it look up templates through
templates/components
instead oftemplates/
?I'm pretty new to Ember so please let me know if I missed anything.
Posts: 2
Participants: 2