Em.run(function(){ pouch = App.__container__.lookup('pouch:main'); model = Photo.create({ title: "Work in progress", description: "This item is incomplete." }); stop(); pouch.POST(model).then(function(newModel){ model = newModel; id = model.get('id'); start(); }); });
model: function() { // provide a new photo to the template return Photo.create({}); }