Skip to content

Instantly share code, notes, and snippets.

@patrickjholloway
Created August 24, 2014 06:08
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 patrickjholloway/a886251e07f677621ec8 to your computer and use it in GitHub Desktop.
Save patrickjholloway/a886251e07f677621ec8 to your computer and use it in GitHub Desktop.
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