2015-06-29 22:51:29 +00:00
|
|
|
'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'
|
|
|
|
});
|
2015-07-03 00:54:58 +00:00
|
|
|
|
2015-07-14 01:00:00 +00:00
|
|
|
// $urlRouterProvider.otherwise( function($injector) {
|
|
|
|
// var $state = $injector.get('$state');
|
|
|
|
// $state.go('home');
|
|
|
|
// });
|
2015-06-30 11:05:44 +00:00
|
|
|
|
2015-06-29 22:51:29 +00:00
|
|
|
}
|
|
|
|
]);
|