Getting Into Ember.js – Part 5
By Rey Bango In part 3 of my Ember series, I showed you how you can interact with data using Ember’s Ember.Object main base class to create objects that define the methods and properties that act as a wrapper for your data. Here’s an example: App.Item = Ember.Object.extend(); App.Item.reopenClass({ all: function() { return $.getJSON(‘http://api.ihackernews.com/page?format=jsonp&callback=?’).then(function(response) […]