-
-
Save bbraithwaite/a92fcb054a19ef7a4443 to your computer and use it in GitHub Desktop.
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'; | |
//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