text: 'use strict';
  /* App Module */
  var onlineStoreApp = angular.module('onlineStoreApp', [
      'ui.router', 'layoutNav', 'layoutFooter', 'layoutWelcome',
      'itemsList', 'itemDetails', 'itemForm', 'paymentsList', 'accountsList', 'contactsList', 'cartsList']);
  
  onlineStoreApp.config(['$stateProvider', '$urlRouterProvider', '$locationProvider', '$httpProvider', function(
      $stateProvider, $urlRouterProvider, $locationProvider, $httpProvider) {
  
      // safari turns to be lazy sending the Cache-Control header
      $httpProvider.defaults.headers.common["Cache-Control"] = 'no-cache';
  
      $locationProvider.hashPrefix('!');
  
      $urlRouterProvider.otherwise('/welcome');
      $stateProvider
          .state('app', {
              abstract: true,
              url: '',
              template: '<ui-view></ui-view>'
          })
          .state('welcome', {
              parent: 'app',
              url: '/welcome',
              template: '<layout-welcome></layout-welcome>'
          });
  }]);
  
  ['welcome', 'nav', 'footer'].forEach(function(c) {
      var mod = 'layout' + c.toUpperCase().substring(0, 1) + c.substring(1);
      angular.module(mod, []);
      angular.module(mod).component(mod, {
          templateUrl: "scripts/fragments/" + c + ".html"
      });
  });
  