Chapter 2. The Ember.js way

 

This chapter covers

  • How bindings work and how they affect your programming style
  • Using automatic updating templates
  • How and when to use computed properties and observers
  • The Ember.js object and class model

This chapter builds on the code that you developed in chapter 1 to explain the most defining aspects of the Ember.js framework in detail. One of the key design goals of Ember.js is to make sane, reasonable, default choices to reduce the amount of boilerplate code that you must write on your own. Ember.js uses default settings that work out of the box with the majority of web applications, and it allows you to override these defaults easily where applicable. Thanks to those sane choices, you can write large web applications without having to constantly consider how your data will get from point A to point B or how your web elements will be updated in a clean and efficient manner, and you can easily integrate with any third-party JavaScript Framework of your choice.

2.1. Using bindings to glue your objects together

2.2. Updating templates automatically

2.3. Computed properties

2.4. Observers

2.5. The Ember.js object model

2.6. Data synchronization between layers with Ember.js

2.7. Summary