Tutorial by Examples

The ember data models have a toJSON method that extracts the relevant data: console.log(model.toJSON()); This method uses the JSONSerializer to create the JSON representation. If you want to log the data in a more app-specific way, you can use serialize: model.serialize(); which uses the se...
Ember has a static global method called runInDebug which can run a function meant for debugging. Ember.runInDebug(() => { // this code only runs in dev mode }); In a production build, this method is defined as an empty function (NOP). Uses of this method in Ember itself are stripped from ...

Page 1 of 1