Semaphore/public/js/routes/router.js
Matej Kramny 121567fa03 sample Projects UI, cleanup vendor/
- Update dependencies
- Remove lib/
- Dashboard
2016-03-28 18:28:26 +01:00

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;
});