Slide 19
Slide 19 text
Example of defining a model
export default Model.extend({
familyName: attr("string"),
givenName: attr("string"),
birthdate: attr("date"),
fullName: Ember.computed('firstName', 'lastName', function() {
return `${this.get('firstName')} ${this.get('lastName')}`;
})
});