ledgerrb/public/app/js/state.js
Gwenhael Le Moine b94fa759e6 removed navbar
2014-11-08 17:40:30 +01:00

28 lines
691 B
JavaScript

// Sub-application/main Level State
app.config( [ '$stateProvider', '$urlRouterProvider',
function ( $stateProvider, $urlRouterProvider ) {
$urlRouterProvider.when( '', '/balance' );
$stateProvider
.state( 'app.balance', {
url: '/balance',
templateUrl: 'js/templates/balance.tpl.html',
controller: 'BalanceCtrl'
} )
.state( 'app', {
url: '',
controller: 'AppCtrl',
views: {
'main': {
templateUrl: 'js/templates/main.tpl.html'
}
}
} )
.state( '404', {
url: '/404',
templateUrl: 'js/templates/404.tpl.html',
controller: 'AppCtrl'
} );
}
] );