Skip to content

Instantly share code, notes, and snippets.

@perrygovier
Last active August 29, 2015 14:15
Show Gist options
  • Save perrygovier/7377e90d969899b7fc5f to your computer and use it in GitHub Desktop.
Save perrygovier/7377e90d969899b7fc5f to your computer and use it in GitHub Desktop.
sessions.all = function() {
var q = $q.defer()
$http.get('https://devnexus.com/s/presentations.json')
.then(function(response) {
q.resolve(response.data.presentationList.presentation)
});
return q.promise;
};
sessions.ready = $q.all([
sessions.all().then(function(data){
sessions.list.concat(data);
});
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment