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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T07:43:11+00:00 2026-06-16T07:43:11+00:00

I typed the following code on documentation page on emberjs.com http://emberjs.com/documentation/ But, it does

  • 0

I typed the following code on “documentation” page on emberjs.com
http://emberjs.com/documentation/

But, it does not show the result that I expect.
Why is that?

App.wife = Ember.Object.create({
    householdIncome: 80000
});

App.husband = Ember.Object.create({
    householdIncomeBinding: 'App.wife.householdIncome'
});

console.log(App.husband.get('householdIncome')); //it shows 80000

App.husband.set('householdIncome', 90000);

**console.log(App.wife.get('householdIncome')); // it shows 80000 not 90000**
console.log(App.husband.get('householdIncome')); // this shows 90000

I’m expecting to get 90000 when I type console.log(App.wife.get(‘householdIncome’));,
as the example code on ember.js says.

Does anyone know what’s wrong?
Please give me a help.

Thanks!!

  • 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-16T07:43:12+00:00Added an answer on June 16, 2026 at 7:43 am

    From that same documentation:

    Note that bindings don’t update immediately. Ember waits until all of your application code has finished running before synchronizing changes, so you can change a bound property as many times as you’d like without worrying about the overhead of syncing bindings when values are transient.

    You can wrap your console.log statements with Ember.Run.next to make sure the binding updates are applied before they run.

    App.husband.set('householdIncome', 90000);
    
    Ember.run.next(function() {
      console.log("her income: " + App.wife.get('householdIncome')); // it shows 90000
      console.log("his income: " + App.husband.get('householdIncome')); // it also shows 90000
    });​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As per the example in the documentation I made the following code that fails
According to MSDN documentation for RandomNumberGenerator : Application code does not directly use this
I'm having a problem with my jQuery code on http://alpha.spherecat1.com/ , but the local
I'm following the Scrapy tutorial documentation at http://media.readthedocs.org/pdf/scrapy/0.14/scrapy.pdf and I've verified that items.py and
The following code yields an error error: ‘struct Foo’ is not a valid type
Getting the following error message from https://mws.amazonservices.com/ : <Type>Sender</Type> <Code>SignatureDoesNotMatch</Code> − <Message> The request
Consider the following code that automates generation of Boost.MPL type sequences (list or vector).
I'm using Java 1.3, which means that it does not have autoboxing of primitives.
I know that this question is perfectly answered in FOSUserBundle documentation, but yet I
The following code example demonstrates that the implicit cast from short to char fires

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.