Skip to content

Instantly share code, notes, and snippets.

@rotemtam
Created August 24, 2015 15:10
Show Gist options
  • Select an option

  • Save rotemtam/452211fb52497d9c02e7 to your computer and use it in GitHub Desktop.

Select an option

Save rotemtam/452211fb52497d9c02e7 to your computer and use it in GitHub Desktop.
angular.module('kahootCloneApp')
.service('Host', function (fbutil) {
var self = this;
self.init = function(PIN) {
self.syncObject = fbutil.syncObject('games/' + PIN);
return self.syncObject.$loaded();
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment