Reputation: 123
Am I doing this wrong? I have a containerview in my view that gets a component added to it. My component is an extension of a main component. Except what seems to be added to the view's template is the main component's template. Why isn't my extended component getting added?
My JSBin: http://emberjs.jsbin.com/vicojere/1/edit
Thanks if anyone can clear this up for me.
Upvotes: 0
Views: 1524
Reputation: 47367
templateName
is deprecated, use layoutName
to specify the template and it should fix your issue.
App.UiMainComponent = Ember.Component.extend({
layoutName: "components/ui-main"
});
App.UiSubComponent = App.UiMainComponent.extend({
templateName: "components/ui-sub"
});
http://emberjs.jsbin.com/vicojere/4/edit
Upvotes: 1