config.js
1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
* INSPINIA - Responsive Admin Theme
*
* Inspinia theme use AngularUI Router to manage routing and views
* Each view are defined as state.
* Initial there are written stat for all view in theme.
*
*/
function config($stateProvider, $urlRouterProvider) {
$urlRouterProvider.otherwise("/index/dashboard");
$stateProvider
.state('index', {
abstract: true,
url: "/index",
templateUrl: "views/common/content.html",
})
.state('index.dashboard', {
url: "/dashboard",
templateUrl: "views/fbo-admin/dashboard.html",
controller: 'DashboardController'
})
.state('index.flight', {
url: "/flight",
templateUrl: "views/fbo-flight/flight.html",
controller: 'FlightDeptController'
})
.state('index.minor', {
url: "/minor",
templateUrl: "views/minor.html",
data: { pageTitle: 'Example view' }
})
}
angular
.module('inspinia')
.config(config)
.run(function($rootScope, $state) {
$rootScope.$state = $state;
});