mirror of
https://github.com/gwenhael-le-moine/ledgerrb.git
synced 2025-01-10 05:24:24 +01:00
27 lines
581 B
JavaScript
27 lines
581 B
JavaScript
// Application Level State
|
|
app.config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) {
|
|
|
|
$urlRouterProvider.when('', '/balance');
|
|
|
|
|
|
$stateProvider
|
|
.state('app', {
|
|
url: '',
|
|
controller: 'AppCtrl',
|
|
views: {
|
|
'navbar': {
|
|
templateUrl: 'js/core/templates/navbar.tpl.html',
|
|
controller: 'NavbarCtrl'
|
|
},
|
|
'main': {
|
|
templateUrl: 'js/core/templates/main.tpl.html'
|
|
}
|
|
}
|
|
})
|
|
.state('404', {
|
|
url: '/404',
|
|
templateUrl: 'js/core/templates/404.tpl.html',
|
|
controller: 'AppCtrl'
|
|
});
|
|
|
|
}]);
|