Skip to content

Instantly share code, notes, and snippets.

@rotemtam
Last active August 29, 2015 14:28
Show Gist options
  • Select an option

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

Select an option

Save rotemtam/f697f60d89264192acab to your computer and use it in GitHub Desktop.
angular.module('kahootCloneApp')
.controller('HostCtrl', function ($scope, Host, $routeParams,fbutil) {
Host.init($routeParams.PIN)
.then(function() {
Host.syncObject.$bindTo($scope, 'game');
});
$scope.startGame = function() {
$scope.game.data.state = 'preQuestion'
$scope.coundown = 5;
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment