tellform/public/modules/core/config/core.client.routes.js
David Baldwynn e09bddef82 merged stuff
2015-07-02 13:25:48 -07:00

35 lines
786 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'
});
<<<<<<< HEAD
// state('restricted', {
// 'abstract': true,
// resolve: {
// authorize: ['Authorization',
// function(Authorization) {
// return Authorization.authorize();
// }
// ]
// }
// });
=======
$urlRouterProvider.otherwise( function($injector) {
var $state = $injector.get('$state');
$state.go('home');
});
>>>>>>> dev_working
}
]);