First Commit

This commit is contained in:
Luke Vella 2015-01-10 15:43:05 +01:00
commit 2630cc237a
527 changed files with 104273 additions and 0 deletions

View file

@ -0,0 +1,18 @@
angular.module('rallly')
.controller('EventCtrl', function($scope, $http, $state, Event, Participant){
var id = $state.params.id;
$scope.event = Event.get({id:id});
$scope.deleteParticipant = function(pid){
Participant.remove({ id : id , pid : pid }, function(event){
$scope.event = event;
});
}
$scope.save = function(participant){
var participant = new Participant(participant);
participant.$save({id:id}, function(event){
$scope.event = event;
$scope.participant = {};
});
}
});