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

  • Home
  • SEARCH
  • 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 9053203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T13:22:08+00:00 2026-06-16T13:22:08+00:00

Hello Ember jedi masters, I’m learning Ember’s framework and get some confuses while using

  • 0

Hello Ember jedi masters,

I’m learning Ember’s framework and get some confuses while using it with handlebars helpers.

Firstly I created some view templates in my js and html and used a containerView to group those templates.

But I’m having a trouble that I can’t display the value I described in my controllers of those template views.

My HTML part is like this:

    <script type="text/x-handlebars" data-template-name="main">
        <p>this is main template</p>
        {{outlet nav}}
    </script>
    <script type="text/x-handlebars" data-template-name="nav">
    </script>
    <script type="text/x-handlebars" data-template-name="child">
        <p>this is the child in nav, value is {{value}}</p>
    </script>

Here’s my sample code on jsfiddle (including the JS part):
http://jsfiddle.net/9K7D4/

my question is:

  1. while the child view is rendered from container view, I couldn’t get the value which is defined in my child view’s controller. I must missed something in the document.. just couldn’t figure it out..

Thanks for helping me!

  • 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-16T13:22:09+00:00Added an answer on June 16, 2026 at 1:22 pm

    In your example, though the child controller instantiated during application initialization, it is not connected as the controller of the child view (I think there something missing in the framework).

    Anyway, if you want to refer it in the child view, you have to lookup through the router with valueBinding: 'App.router.cController.content.value'. Note I’m using lowercase, as conventionnally, ember will create an instance of XxxController as xxxController.

    Then in the template, as you want to use a property from the view itself, you must use the view keyword in order to do it.

    see http://jsfiddle.net/9K7D4/14/

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

Sidebar

Related Questions

I am trying to learn Ember using the docs here: http://emberjs.com/guides/templates/handlebars-basics/ I am following
Hello I have like this 2 tables class User public int UserId{get;set;} { ....
I would like to render an ember.js view using either raphael.js or d3.js .
I have tried following some tutorials and I get the concept of how the
Hello I just started working with CodeIgniter framework. My current directory structure is Demo(Project
Hello Every Developer out there...!!!! I m currently using Phonegap 1.4.0 on iphone and
Hello is there a way to take the content of a php file while
Currently my basic hello world ember app has the following model objects ChatApp.User =
I'm learning JavaScript. However, it's not so convenient to do some experiments. You have
I'm hoping someone can explain what I'm doing wrong here. I'm using Ember.js with

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.