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