Skip to content

Instantly share code, notes, and snippets.

@rrgarciach
Created August 12, 2016 16:18
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 rrgarciach/64da819feb5fe0df5af4bc6b5a41d506 to your computer and use it in GitHub Desktop.
Save rrgarciach/64da819feb5fe0df5af4bc6b5a41d506 to your computer and use it in GitHub Desktop.
(function () {
'use strict';
/* @ngInject */
function config($stateProvider, $urlRouterProvider, AuthSystemRolesProvider) {
var systemRoles = AuthSystemRolesProvider.$get().getSystemRoles();
$urlRouterProvider
.when('/pricing/', '/pricing');
$stateProvider
.state('main', {
templateUrl: 'app/main/main.html',
abstract: true,
data: {
authenticated: true,
permissions: [systemRoles.account]
}
});
}
angular.module('myApp.main')
.config(config);
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment