Skip to content

Instantly share code, notes, and snippets.

@Mongey
Created May 20, 2015 05:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mongey/e3183f8ac8fcb2e7e206 to your computer and use it in GitHub Desktop.
Save Mongey/e3183f8ac8fcb2e7e206 to your computer and use it in GitHub Desktop.
App.derpyodo = Ember.Component.extend({
loading: true,
willInsertElement: function(){
var user_id = this.get('user-id');
var self = this;
Ember.$.ajax({
url: 'http://localhost:3000/v2/accounts/%@'.fmt(user_id),
}).then(function(resolve) {
self.set('amount', amount);
});
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment