Skip to content

Instantly share code, notes, and snippets.

@Johan-ZeLearner
Last active August 29, 2015 14:20
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 Johan-ZeLearner/ed38991cb52838b334e5 to your computer and use it in GitHub Desktop.
Save Johan-ZeLearner/ed38991cb52838b334e5 to your computer and use it in GitHub Desktop.
Routes configuration for our CustomerProfile module
angular.module('erpedia-customer-profile')
.config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider){
$urlRouterProvider.otherwise('/customerProfile/list');
$stateProvider
.state('customerProfile',{
url: '/customerProfile',
controller: 'CustomerProfileRootController',
templateUrl: jsBaseHref + '/templates/root.html'
})
.state('customerProfile.list', {
url: '/list',
controller: 'CustomerProfileListController',
controllerAs: 'customerProfileCtrl',
templateUrl: jsBaseHref + '/templates/list.html'
})
.state('customerProfile.create', {
url: '/create',
controller: 'CustomerProfileCreateController',
templateUrl: jsBaseHref + '/templates/create.html'
})
.state('customerProfile.update', {
url: '/update/{id_customer_profile:int}',
controller: 'CustomerProfileUpdateController',
controllerAs: 'customerProfileUpdateCtrl',
templateUrl: jsBaseHref + '/templates/update.html'
})
.state('customerProfile.delete', {
url: '/delete/{id_customer_profile:int}',
controller: 'CustomerProfileDeleteController',
controllerAs: 'customerProfileDeleteCtrl',
templateUrl: jsBaseHref + '/templates/delete.html'
})
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment