Created
November 3, 2014 14:36
-
-
Save lsiden/51e925c33601a2112aa5 to your computer and use it in GitHub Desktop.
using $state provider
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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