(function () {
    'use strict';

// Declare app level module which depends on views, and components
    angular
            .module('nasaImagesApp', [
                'ngRoute',
                'ngAnimate',
                'ngMaterial',
                'ngResource',
                'nasaImagesApp.search',
                'nasaImagesApp.photo',
                'nasaImagesApp.app-loading',
            ])
            .config(['$locationProvider', '$routeProvider', '$mdThemingProvider', function ($locationProvider, $routeProvider, $mdThemingProvider) {
                    $locationProvider.hashPrefix(); // Removes index.html in URL
                    $routeProvider.otherwise({redirectTo: '/'});

                    $mdThemingProvider.theme('default')
                            .primaryPalette('grey')
                            .accentPalette('orange');
                }]);

})();