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 8596491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T00:41:34+00:00 2026-06-12T00:41:34+00:00

I am developing an Ember app and it is really great. But I have

  • 0

I am developing an Ember app and it is really great. But I have a annoying problem I can not solve. I use routing in my app and two diffent controllers with their own views. If I try to use a binding property from the first controller to the second one, that property is not reflected in the second view. In a short way I have something like this:

router = Em.Router.extend({.....});
App = Em.Application.create({
    Router: router,
    FirstCtrl: Em.Controller.extend({x:'ABC'}),
    FirstView: Em.View.extend({...}),   
    SecondCtrl: Em.Controller.extend({xBinding:'Em.App.router.firstCtrl.x', y:'123'}),
    SecondView: Em.View.extend({...}),
});
App.initialize();
Em.App = App;

If in the template for the second view I have something like this:

Binding property: {{x}}
Property with no binding: {{y}}

‘ABC’ is not shown in the view but there is no such problem with ‘123’.

In my browser I can access that property from Javascript console with Em.App.router.firstCtrl.x but Em.App.router.secondCtrl.x returns undefined.
So, my question is Why can’t I access that property? How should I write that binding?

Thanks in advance for your help

  • 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-12T00:41:35+00:00Added an answer on June 12, 2026 at 12:41 am

    I don’t think Em at the beginning of binding is required, Try this..

    SecondCtrl: Em.Controller.extend({xBinding:'App.router.firstCtrl.x', y:'123'}),
    

    Well summing up the comments:

  2. All the controllers defined in ember must end with Controller while routing, for example if you call router.get('applicationController').connectOutlets('home') its corresponding controller shall be App.HomeController or App.homeController
  3. while binding use 'App.router.yourController.yourProperty' instead of 'Em.App.router.yourController.yourProperty'
  4. We can also use connectControllers in order access properties across controllers if you want to avoid global bindings
  • 0
  • Reply
  • Share
    Share
    • Share on Facebook
    • Share on Twitter
    • Share on LinkedIn
    • Share on WhatsApp
    • Report

Sidebar

Related Questions

Developing for Android 2.3, I have a question regarding layouts. I use a vertival
Hi I'm developing a small web app in which I have and embed video
I have added selectionDidChange event for my Ember.Select, but when my view loads it
Developing a project of mine I realize I have a need for some level
Im developing an app for iPhone, in wich one of the functionalities is an
The app I'm currently developing depends on a third party application (OIFileManager). My question
We're working on developing user widgets that our members can embed on their websites
This is the scenario: I'm developing a dropdown widget in Jquery. I have to
I have been developing pages and web parts in SharePoint 2007/2010 for the past
I'm developing a web app based on videos that my client would like to

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.