This screencast : http://www.embercasts.com/episodes/getting-started-with-ember-model used Ember.model
to create a person model like this:
App.Person = Ember.Model.extend({
name : Ember.attr()
})
The docs give this example using Ember.Object
App.Person = Ember.Object.extend({
say : function(thing) {
alert(thing);
}
});
Further, under defining models section this example is given which uses DS.model
App.Person = DS.Model.extend({
firstName: DS.attr('string'),
lastName: DS.attr('string'),
birthday: DS.attr('date'),
fullName: function() {
return this.get('firstName') + ' ' + this.get('lastName');
}.property('firstName', 'lastName')
});
What is the difference between these three and when to use which?