Skip to content

Instantly share code, notes, and snippets.

@jasonswett
Created January 28, 2014 23:43
Show Gist options
  • Save jasonswett/8678944 to your computer and use it in GitHub Desktop.
Save jasonswett/8678944 to your computer and use it in GitHub Desktop.
this.lunchHub = angular.module('lunchHub', []);
this.lunchHub.config([
'$routeProvider', function($routeProvider) {
return $routeProvider.when('/addresses', {
templateUrl: '../templates/addresses/index.html',
controller: 'AddressIndexCtrl'
}).when('/groups', {
templateUrl: '../templates/groups/index.html',
controller: 'GroupIndexCtrl'
}).when('/groups/new', {
templateUrl: '../templates/groups/new.html',
controller: 'GroupNewCtrl'
}).when('/groups/:id', {
templateUrl: '../templates/groups/show.html',
controller: 'GroupShowCtrl'
}).otherwise({
templateUrl: '../templates/home.html',
controller: 'HomeCtrl'
});
}
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment