1
<script type="text/x-handlebars" data-template-name="application"> 
{{view App.UiMenuView}}
{{view App.UiMainContainerView}}
{{outlet}}
</script>

<script type="text/x-handlebars" data-template-name="uiMainContainer">
<div id="uiMainContainer">
<div id="uiMainContainerSidebar">
{{#view App.SidebarView}}
<ul id="uiMainContainerSidebarList">
<li><a {{bindAttr href="view.tasksUrl"}}>Tasks</a></li>
<li><a {{bindAttr href="view.milestonesUrl"}}>Milestones</a></li>
<li><a {{bindAttr href="view.projectsUrl"}}>Projects</a></li>
<li><a {{bindAttr href="view.customersUrl"}}>Customers</a></li>
</ul>
{{/view}}
</div>
<div id="uiMainContainerContainer">{{outlet}}</div>
</div>
</script>  

I am wondering if there's a way to address the specifically the outlet from uiMainContainer? I tried something like:

test: Em.Route.extend({
            route: '/test',
            connectOutlets: function(router) {
                //router.get('applicationController').connectOutlet({ name: 'test' });
                router.get('uiMainContainerController').connectOutlet({ name: 'test'});
            }
        })  

This approach, however, seems to do nothing.

Bill the Lizard
  • 398,270
  • 210
  • 566
  • 880
Andrew
  • 6,254
  • 16
  • 59
  • 93
  • 1
    Could you post a more complete fiddle please ? Seeing your code here, this seems to be right. Just keep in mind that the hash passed to the connectOutlet is important (http://stackoverflow.com/questions/11832864/confusion-about-naming-conventions-in-emberjs), and if you miss something in the naming convention, nothing could be displayed – sly7_7 Aug 07 '12 at 07:51
  • @sly7_7 http://jsfiddle.net/6HCgz/ – Andrew Aug 07 '12 at 07:58
  • @sly7_7 I still couldn't figure out why it's not working. – Andrew Aug 07 '12 at 09:05
  • 1
    I'm looking into that... but I'm at the office ^^ – sly7_7 Aug 07 '12 at 09:17
  • 1
    It seems thaht you have to chain outlets, see: http://jsfiddle.net/Sly7/6HCgz/6/ – sly7_7 Aug 07 '12 at 09:23

0 Answers0