Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9207851
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:28:46+00:00 2026-06-18T00:28:46+00:00

I have a scenario in which in a specific route i have two outlets

  • 0

I have a scenario in which in a specific route i have two outlets and in the same route i want to show two different templates in two different outlets.

Details template:

 <script type="text/x-handlebars" data-template-name="details">
    Details Template
    {{#linkTo "index"}}Home{{/linkTo}}
    <hr/>
    <h4>DETAILS</h4>
    <hr/>
    <div class='outletArea'>
    {{outlet "detailsList"}}
    </div>
    <hr/>
    <div class='outletArea'>
    {{outlet "detailsMatrix"}}
    </div>
</script>    

Route is defined as:

App.DetailsRoute = Ember.Route.extend({
renderTemplate: function () {
    this._super();//to render the details temlate whch has outlets
    this.render('detailsList', { outlet: 'detailsList' });//render the list in list outlet
    this.render('detailsMatrix', { outlet: 'detailsMatrix' });//rendet the matrix in matrix outlet
    }
});

But those two template are not getting rendered in those two outlets rather they get rendered in the root element directely.

Fiddle for my proble is http://jsfiddle.net/anshulguleria/eCTtu/

As in jsfiddle i wanted these two temlates to get rendered in the grey areas. Thus when going through the link my rendered templates are not removed and rendered again and again.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T00:28:47+00:00Added an answer on June 18, 2026 at 12:28 am

    Your details route is at the top level, so when calling render in its renderTemplate function without specifying the into option, it tries to find these outlets in the top level template (i.e. in the application template). You can see it in this JSFiddle.

    If you were in a nested route, it search them in the parent template (AFAIK).

    Consequently, you just have to add the into option like this:

    this.render('detailsList', { outlet: 'detailsList', into: 'details' });
    this.render('detailsMatrix', { outlet: 'detailsMatrix', into: 'details' });
    

    And it works!

    EDIT

    It looks like Ember expect to have an application template that has an {{outlet}}.
    It seems to be a bug in Ember, I think you can post an issue in github.

    I’ve updated the link above to add an application template.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have implement a scenario which involves two way communication between child and parent
Hi experts I want to know in which scenario I have more Performance(Time to
The Scenario: We have multiple nodes distributed geographically on which we want to have
I'm trying to understand media.release and have a specific scenario which I'm unsure if
This is my scenario: I have two different tables: Table 'subscriptions' contains all the
I have a scenario in which I have to run multiple commands one after
I have a scenario in which I'm serving a file from codebehind. which file,
I have a scenario in which I have REST API which manages a Resource
I have a performance run scenario which calls cd %AUTORUN_DIR% call abc.bat cd %AUTORUN_DIR%
I have a very simple scenario which I cannot get to work. I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.