Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
fetchUserCount: function(){
Ember.$.getJSON('/s/1.json', function(data){
userData = JSON.parse(data);
this.content.set('userCount', userData.count); // or whatever your json contains
window.setTimeout(this.fetchUserCount, 5000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.