mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-22 16:20:44 +01:00
121567fa03
- Update dependencies - Remove lib/ - Dashboard
24 lines
593 B
JavaScript
24 lines
593 B
JavaScript
app.config(function ($stateProvider, $urlRouterProvider, $locationProvider, $couchPotatoProvider) {
|
|
$locationProvider.html5Mode({
|
|
enabled: true,
|
|
requireBase: false
|
|
});
|
|
|
|
$urlRouterProvider.otherwise('/');
|
|
|
|
$stateProvider
|
|
.state('dashboard', {
|
|
url: '/',
|
|
pageTitle: 'Dashboard',
|
|
templateUrl: '/tpl/dashboard.html',
|
|
controller: 'DashboardCtrl',
|
|
resolve: {
|
|
$d: $couchPotatoProvider.resolveDependencies(['controllers/dashboard'])
|
|
}
|
|
});
|
|
});
|
|
|
|
app.run(function($rootScope, $state, $stateParams, $http) {
|
|
$rootScope.$state = $state;
|
|
$rootScope.$stateParams = $stateParams;
|
|
}); |