Comments (3)
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.
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.
@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)
- Need method to load data directly into the store (instead of using REST) HOT 1
- Upgraded to ember-rails (0.7.0), stopped working. HOT 1
- Needs model-level validations
- Contact ids are undefined immediately after creation
- Memory leak in EditContactController? HOT 1
- Add tests for Ember application HOT 5
- is there more clean way to implement transitionAfterSave? HOT 5
- rails runtime error HOT 1
- Update spec_helper and acceptance test examples HOT 3
- linecache and ruby-debug-base gem versions are too recent HOT 2
- workflow bug HOT 8
- Just curious if this is going to be updated... HOT 10
- tutorial?
- bundle exec rake test fails
- issues with including/not including root in json HOT 2
- Update object only when form is submitted HOT 3
- Refresh listing doesn't work HOT 2
- collectionUrl, resourceUrl are ignored -> use namespace instead HOT 2
- Bundle install fails because of ruby-debug19 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember_data_example.