ledgerrb/public/app/js/state.js

21 lines
470 B
JavaScript
Raw Normal View History

// Sub-application/main Level State
2014-10-01 15:25:08 +02:00
app.config( [ '$stateProvider', '$urlRouterProvider',
function ( $stateProvider, $urlRouterProvider ) {
2014-10-01 15:25:20 +02:00
$stateProvider
.state( 'app', {
url: '',
views: {
'main': {
templateUrl: 'js/templates/dashboard.html',
controller: 'DashboardCtrl'
2014-10-01 15:25:20 +02:00
}
}
} )
.state( '404', {
url: '/404',
templateUrl: 'js/templates/404.html'
2014-10-01 15:25:20 +02:00
} );
2014-10-01 15:25:20 +02:00
}
] );