22 lines
526 B
JavaScript
Executable file
22 lines
526 B
JavaScript
Executable file
'use strict';
|
|
|
|
// Setting up route
|
|
angular.module('core').config(['$stateProvider', '$urlRouterProvider',
|
|
function($stateProvider, $urlRouterProvider, Authorization) {
|
|
// Redirect to home view when route not found
|
|
$urlRouterProvider.otherwise('/');
|
|
|
|
// Home state routing
|
|
$stateProvider.
|
|
state('home', {
|
|
url: '/',
|
|
templateUrl: 'modules/core/views/home.client.view.html'
|
|
});
|
|
|
|
$urlRouterProvider.otherwise( function($injector) {
|
|
var $state = $injector.get('$state');
|
|
$state.go('home');
|
|
});
|
|
|
|
}
|
|
]); |