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

Defining ember-data models

As discussed in the introduction, models in any MVC application define the business domain properties and behavior that needs to be consumed by the end user of your application. As we learned from the Injecting the model for your template section, in Chapter 4, Managing Application State Using Ember.js Routes that models, these could either be plain static JavaScript objects, or JSON data that is fetched from a remote server.

Model objects, defined by the ember-data library abstracts away the complexities involved with handling the communication with the server, serializing, as well as de-serializing of the response received from the server. In order to define your ember-data model object, you just need to extend the ...

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