Blame view
app/scripts/config.js
1.54 KB
e4e496d13
|
1 2 3 4 5 6 7 8 9 |
/** * 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) { |
5c6477d3d
|
10 |
$urlRouterProvider.otherwise("/login"); |
e4e496d13
|
11 12 13 |
$stateProvider |
5c6477d3d
|
14 15 16 17 18 19 20 |
.state('login', { //abstract: true, url: "/login", templateUrl: "views/login/login.html", controller: 'LoginController' }) |
e4e496d13
|
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
.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' }) |
5c6477d3d
|
36 37 38 39 40 |
.state('index.updateAirports', { url: "/updateAirports", templateUrl: "views/update-airports/update-airports.html", controller: 'updateAirportController' }) |
e4e496d13
|
41 42 43 44 45 46 47 48 49 50 51 52 |
.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; }); |