Coder Social home page Coder Social logo

Comments (3)

dgeb avatar dgeb commented on August 21, 2024

It's a bit tricky. The sole reason for that contentBinding is to ensure that isActive() can be evaluated in App.ContactInListView. If you remove it, the active contact will no longer be highlighted, because the view won't have access to the contact.

The reason that the contacts still appear in the list properly is that the template contact_in_list.hbs has access to the contact var from its parent, and so it can evaluate:

{{#linkTo "contact" contact}}{{contact.fullName}}{{/linkTo}}

Some of these context differences between templates and views can be a bit subtle and confusing.

from ember_data_example.

Undistraction avatar Undistraction commented on August 21, 2024

I have to say I'm really struggling with Ember. There is so much out there that is out of date or subtly wrong and very little in the way of best practices. I can see that Ember is a really great thing, but I'm not much enjoying learning it from the scraps I can find. Thanks again for this example. It's been really helpful.

from ember_data_example.

dgeb avatar dgeb commented on August 21, 2024

@1ndivisible Take heart - Ember's 1.0 API stabilized just over a month ago. I think that you'll see a wave of new guides, tutorials and examples now that much of the churn is behind us. In fact, I'm just getting the tests in order for this project and will be doing a series of blog posts based on it soon.

from ember_data_example.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.