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