O'Reilly logo

Ember.js Web Development with Ember CLI by Suchit Puri

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Computed properties

Objects in JavaScript are a combination of data (or properties), and behavior (or methods). It can also be thought as a key value store, wherein keys are the names of the properties and values containing the data or methods. You can access plain JavaScript properties by using either the dot notation or the bracket notation as follows:

var obj = { firstName: "suchit", lastName:"puri"};
console.log(obj.firstName); //Dot Notation
console.log(obj['lastName']); //Bracket Notation

Getter and setter methods

In order to provide features like property bindings, computed properties, auto updating templates, and a lot more, Ember.js framework uses get and set methods, instead of accessing the properties directly, as shown above. These methods, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required