Created
May 20, 2015 05:24
-
-
Save Mongey/e3183f8ac8fcb2e7e206 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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