sum7/warehost-frontend
sum7
/
warehost-frontend
Archived
1
0
Fork 0
This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
warehost-frontend/public/app/index.js

38 lines
819 B
JavaScript

'use strict';
angular.module('warehost')
.config(['$stateProvider',function ($stateProvider) {
$stateProvider
.state('app', {
templateUrl: 'app/main.html',
controller: 'MainCtrl'
})
.state('app.index', {
url:'/',
templateUrl: 'app/home.html',
controller:function(alert){
alert.set({});
}
})
.state('app.L', {
templateUrl: 'app/loggedin.html'
})
.state('app.L.setting', {
url:'/settings',
templateUrl: 'app/setting.html',
controller: 'SettingCtrl'
})
.state('app.L.invite', {
url:'/invites',
templateUrl: 'app/invite.html',
controller: 'InviteCtrl'
})
.state('app.A', {
templateUrl: 'app/admin.html'
})
.state('app.A.user', {
url:'/user',
templateUrl: 'app/user.html',
controller: 'UserCtrl'
});
}]);