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

@ -5,7 +5,7 @@ angular.module('rallly', ['ui.router','ngResource','ngFx'])
$stateProvider
.state('index',{
url : '/',
templateUrl : 'templates/new.html',
templateUrl : 'templates/newevent.html',
controller : 'NewEventCtrl'
})
.state('about', {
@ -16,6 +16,11 @@ angular.module('rallly', ['ui.router','ngResource','ngFx'])
url : '/notfound',
templateUrl : 'templates/notfound.html'
})
.state('editevent', {
url: '/:id/edit',
templateUrl : 'templates/editevent.html',
controller : 'EditEventCtrl'
})
.state('event',{
url : '/:id',
templateUrl : 'templates/event.html',