function config($stateProvider, $urlRouterProvider, IdleProvider, KeepaliveProvider, $httpProvider, $sceDelegateProvider) { // Configure Idle settings IdleProvider.idle(5); // in seconds IdleProvider.timeout(120); // in seconds $urlRouterProvider.otherwise("home/index"); $sceDelegateProvider.resourceUrlWhitelist(['self','https://www.xenhey.com/**']); $stateProvider .state('app', { abstract: true, url: "/app", templateUrl: "views/common/content.html" }) .state('home', { abstract: true, url: "/home", templateUrl: "views/common/content.html" }) .state('home.index', { url: "/index", templateUrl: "https://www.xenhey.com/api/store/389336D4F439401E86BE60209683841C", data: { pageTitle: 'Index' } }) .state('home.services', { url: "/services", templateUrl: "https://www.xenhey.com/api/store/47A58E866AA14E558AE4FDA5AAB8DFB5", data: { pageTitle: 'services' } }) .state('home.admission', { url: "/admission", templateUrl: "https://www.xenhey.com/api/store/CB0EDD9A8B3F466FA4C90F102ACDB95B", data: { pageTitle: 'admission' } }) .state('home.testimonials', { url: "/testimonials", templateUrl: "https://www.xenhey.com/api/store/80A6EE40124B43099ABFC96FBE0257D8", data: { pageTitle: 'Testimonials' } }) .state('home.listing', { url: "/listing", templateUrl: "https://www.xenhey.com/api/store/FA3EC04830C04F64AD8E1E26F70192B5", data: { pageTitle: 'Listing' } }) .state('home.viewlist', { url: "/viewlist", templateUrl: "https://www.xenhey.com/api/store/4C0C072939AF4BA8BEDE35F938B4D233", data: { pageTitle: 'View Listing' } }) .state('home.login', { url: "/login", templateUrl: "https://www.xenhey.com/api/store/F5709E4E08624DFEA95E030BA9742F49", data: { pageTitle: 'Login' } }) .state('home.howitworks', { url: "/howitworks", templateUrl: "https://www.xenhey.com/api/store/819451371D9C4A9081BA1B59A5704ACC", data: { pageTitle: 'How It Works' } }) .state('home.blog', { url: "/blog", templateUrl: "https://www.xenhey.com/api/store/EC1BB1A7B3314D6FB2F485DE3ACDF3AC", data: { pageTitle: 'Blog' } }) .state('home.pricing', { url: "/pricing", templateUrl: "https://www.xenhey.com/api/store/5E06C85FB2C94EE183FA9887DCCC896F", data: { pageTitle: 'pricing' } }) .state('home.register', { url: "/register", templateUrl: "https://www.xenhey.com/api/store/81D855D0FB234DE8B69D43C9C48B9D62", data: { pageTitle: 'register' } }) .state('home.store', { url: "/store", templateUrl: "https://www.xenhey.com/api/store/47DC36F5DB304467B7796C4F6BC4C67B", data: { pageTitle: 'store' } }) .state('home.documentation', { url: "/register", templateUrl: "api/store/7787FF256D72430C835750758A70F095", controller: "documentationCtrl", controllerAs: 'vm', data: { pageTitle: 'Documentation' } }) .state('home.case', { url: "/case", templateUrl: "https://www.xenhey.com/api/store/F8E08752479345D9A062A06A4F395642", data: { pageTitle: 'case' } }) .state('home.internationalstudents', { url: "/internationalstudents", templateUrl: "https://www.xenhey.com/api/store/BBD551F3AC3E4735987B0E8D2CD6672E", data: { pageTitle: 'internationalstudents' } }) .state('home.apply', { url: "/apply", templateUrl: "https://www.xenhey.com/api/store/75E8FE0787FF46BC9A548D92B9C7208E", data: { pageTitle: 'Apply' } }) .state('home.events', { url: "/events", templateUrl: "https://www.xenhey.com/api/store/14E44AE4C1E749F7B2767ACB5E1A3597", data: { pageTitle: 'Events' } }) .state('home.aboutus', { url: "/aboutus", templateUrl: "https://www.xenhey.com/api/store/8B0B477FEA2E41C3B1B74AC751F6035E", data: { pageTitle: 'About Us' } }) .state('home.resources', { url: "/resources", templateUrl: "https://www.xenhey.com/api/store/CA7D592A92D94539B199BC4BA1F4C4FB", data: { pageTitle: 'Resources' } }) .state('home.contactus', { url: "/contactus", templateUrl: "https://www.xenhey.com/api/store/7E2BE275B8FC448AAFF03E40CA23B83F", data: { pageTitle: 'Contact Us' } }) .state('home.shop', { url: "/shop", templateUrl: "https://www.xenhey.com/api/store/5BE2B6039F3A4336B30DB4D751E95797", data: { pageTitle: 'Shop' } }) .state('app.configstore', { url: "/configstore", templateUrl: "views/configstore.html", controller: "configStoreCtrl", controllerAs: 'vm', data: { pageTitle: 'Configuration Store' } }); } angular .module('parknewlondon') .config(config) .run(function($rootScope, $state) { $rootScope.$state = $state; });