2014-03-14 13:38:27 -07:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
//Setting up route
|
|
|
|
angular
|
|
|
|
.module('cosign')
|
2014-03-18 09:22:20 -07:00
|
|
|
.config(function($stateProvider, $urlRouterProvider) {
|
|
|
|
// For unmatched routes:
|
|
|
|
$urlRouterProvider.otherwise('/');
|
|
|
|
|
|
|
|
// States for cosign
|
|
|
|
$stateProvider
|
|
|
|
.state('home', {
|
|
|
|
url: '/',
|
|
|
|
templateUrl: 'views/home.html'
|
|
|
|
})
|
|
|
|
.state('signin', {
|
|
|
|
url: '/signin',
|
|
|
|
templateUrl: 'views/signin.html'
|
2014-03-14 13:38:27 -07:00
|
|
|
})
|
2014-03-18 09:22:20 -07:00
|
|
|
.state('404', {
|
|
|
|
url: '/404',
|
|
|
|
templateUrl: 'views404.hmtl'
|
2014-03-14 13:38:27 -07:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
//Setting HTML5 Location Mode
|
|
|
|
angular
|
2014-03-18 09:22:20 -07:00
|
|
|
.module('cosign')
|
2014-03-14 13:38:27 -07:00
|
|
|
.config(function($locationProvider) {
|
|
|
|
$locationProvider.hashPrefix('!');
|
|
|
|
});
|