Updated editing of event

This commit is contained in:
Luke Vella 2015-01-12 23:31:55 +01:00
parent 6b1e9893e9
commit bc1e25377c
16 changed files with 197 additions and 36 deletions

View file

@ -1,8 +1,7 @@
angular.module('rallly')
.controller('NewEventCtrl', function($scope, $http, $state){
.controller('NewEventCtrl', function($scope, $http, $state, Event){
$(".nav-link[href='/']").addClass('active');
$scope.event = {};
$scope.isNewEvent = true;
$scope.submit = function(){
$http.post('/api/event', $scope.event)
.success(function(event, status, headers, config){