mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-10 15:36:49 +02:00
Updated editing of event
This commit is contained in:
parent
6b1e9893e9
commit
bc1e25377c
16 changed files with 197 additions and 36 deletions
|
@ -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){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue