Skip to content

Instantly share code, notes, and snippets.

@abuiles
Last active August 29, 2015 13:57
Show Gist options
  • Save abuiles/9397019 to your computer and use it in GitHub Desktop.
Save abuiles/9397019 to your computer and use it in GitHub Desktop.
Post = DS.Model.extend
slug: DS.attr("string")
data: (->
data = Ember.Object.extend(Ember.PromiseProxyMixin)
data.create
promise: icjax.get("/return-json-object-with-body-content/+#{this.get('slug')}")
).property()
# template
{{if show}}
data.post
{{/if}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment