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

30 lines
654 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.settings', {
url:'/settings',
templateUrl: 'app/settings.html',
controller: 'SettingsCtrl'
})
.state('app.L.invites', {
url:'/invites',
templateUrl: 'app/invites.html',
controller: 'InvitesCtrl'
});
}]);