'use strict'; /** * @ngdoc overview * @name domainManagerApp * @description * # domainManagerApp * * Main module of the application. */ angular .module('goApp', [ 'ngAnimate', 'ngCookies', 'ngResource', 'ngRoute', 'ngSanitize', 'ngTouch', 'famous.angular', 'ngFx', 'goApp.data', 'goApp.index', 'goApp.background', 'goApp.navigation', 'goApp.slideshow', 'goApp.slider' ]) .config(['$routeProvider', '$httpProvider', function($routeProvider, $httpProvider) { // Configs //Enable cross domain calls //$httpProvider.defaults.useXDomain = true; //Remove the header used to identify ajax call that would prevent CORS from working //delete $httpProvider.defaults.headers.common['X-Requested-With']; // Routes $routeProvider .when('/', { templateUrl: 'views/index.html', controller: 'IndexController' }) .when('/:slideshowId', { templateUrl: 'views/slideshow.html', controller: 'SlideshowController' }) .otherwise({ redirectTo: '/' }); }])