Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
'use strict';
//Setting up route
function($stateProvider) {
// Categories state routing
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
You can’t perform that action at this time.