Skip to content

Instantly share code, notes, and snippets.

@lsiden
Created November 3, 2014 14:36
Show Gist options
  • Save lsiden/51e925c33601a2112aa5 to your computer and use it in GitHub Desktop.
Save lsiden/51e925c33601a2112aa5 to your computer and use it in GitHub Desktop.
using $state provider
'use strict'
angular.module 'farmersmarketApp'
.config ($stateProvider) ->
$stateProvider
.state 'admin-events',
url: '/admin/events'
templateUrl: 'app/admin/events/events.html'
controller: 'AdminEventsCtrl'
.state 'admin-event',
url: '/admin/events/:id'
templateUrl: 'app/admin/events/event.html'
controller: 'AdminEventCtrl'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment