Skip to content

Instantly share code, notes, and snippets.

@bbraithwaite
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bbraithwaite/a92fcb054a19ef7a4443 to your computer and use it in GitHub Desktop.
Save bbraithwaite/a92fcb054a19ef7a4443 to your computer and use it in GitHub Desktop.
'use strict';
//Setting up route
angular.module('categories').config(['$stateProvider',
function($stateProvider) {
// Categories state routing
$stateProvider.
state('listCategories', {
url: '/categories',
templateUrl: 'modules/categories/views/categories.client.view.html'
}).
state('createCategory', {
url: '/categories/create',
templateUrl: 'modules/categories/views/create-category.client.view.html'
}).
state('viewCategory', {
url: '/categories/:categoryId',
templateUrl: 'modules/categories/views/view-category.client.view.html'
}).
state('editCategory', {
url: '/categories/:categoryId/edit',
templateUrl: 'modules/categories/views/edit-category.client.view.html'
});
}
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment