(function () {Â Â 'use strict';
  var app = angular.module('app', [    // Angular modules    'ngAnimate', // animations    'ngRoute', // routing    'ngSanitize', // sanitizes html bindings (ex: sidebar.js)
    // Custom modules    'common', // common functions, logger, spinner    'common.bootstrap', // bootstrap dialog wrapper functions
    // 3rd Party Modules    'breeze.angular', // configures breeze for an angular app    'breeze.directives', // contains the breeze validation directive (zValidate)    'ui.bootstrap', // ui-bootstrap (ex: carousel, pagination, dialog)
    //auth0    'auth0', // main auth0     'angular-storage', // for local storage of tokens    'angular-jwt' // Json web tokens  ]);
  // Handle routing errors and success events  app.run(['$route', 'auth0', 'datacontext', function ($route, auth, datacontext) {
    // This hooks all auth events to check everything as soon as the app starts    auth.hookEvents();    // Include $route to kick start the router.    datacontext.prime();    }]);})();
...
<!-- common.bootstrap Modules -->Â Â Â Â <script src="app/common/bootstrap/bootstrap.dialog.js"></script>Â Â Â Â Â Â Â Â Â <!--Auth0-->Â Â Â Â <!--Todo: download these scripts instead of relying on their web version-->Â Â Â Â <!-- Auth0 Lock script and AngularJS module -->Â Â Â Â <script src="//cdn.auth0.com/js/lock-6.js"></script>Â Â Â Â <!-- angular-jwt and angular-storage -->Â Â Â Â <script type="text/javascript" src="//rawgit.com/auth0/angular-storage/master/dist/angular-storage.js"></script>Â Â Â Â <script type="text/javascript" src="//rawgit.com/auth0/angular-jwt/master/dist/angular-jwt.js"></script>Â Â Â Â <script src="//cdn.auth0.com/w2/auth0-angular-3.js"> </script>Â Â Â Â <!-- Setting the right viewport -->Â Â Â Â <!-- Â Â <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />-->
    <!-- app -->    <script src="app/admin/admin.js"></script>    <script src="app/dashboard/dashboard.js"></script>
...
(function () {Â Â 'use strict';
  var app = angular.module('app');
  // Configure Toastr  toastr.options.timeOut = 4000;  toastr.options.positionClass = 'toast-bottom-right';
  var keyCodes = {    backspace: 8,    tab: 9,    enter: 13,    esc: 27,    space: 32,    pageup: 33,    pagedown: 34,    end: 35,    home: 36,    left: 37,    up: 38,    right: 39,    down: 40,    insert: 45,    del: 36  };
  // For use with the HotTowel-Angular-Breeze add-on that uses Breeze  var remoteServiceName = 'breeze/Breeze'; //original value  //   var remoteServiceName = 'http://localhost:4545/breeze/Breeze';  //   var remoteServiceName = 'http://10.2.23.102:8082/breeze/Breeze';
  var events = {    controllerActivateSuccess: 'controller.activateSuccess',    hasChangesChanged: 'datacontext.hasChangesChanged',    spinnerToggle: 'spinner.toggle'  };
  var config = {    appErrorPrefix: '[BD-Portal Error] ', //Configure the exceptionHandler decorator    docTitle: 'DataAcquisition: ',    events: events,    keyCodes: keyCodes,    remoteServiceName: remoteServiceName,    version: '2.1.0'  };
  app.value('config', config);
  app.config(['$logProvider', function ($logProvider) {    // turn debugging off/on (no info or warn)    if ($logProvider.debugEnabled) {      $logProvider.debugEnabled(true);    }  }]);
  //#region Configure the common services via commonConfig  app.config(['commonConfigProvider', function (cfg) {    cfg.config.controllerActivateSuccessEvent = config.events.controllerActivateSuccess;    cfg.config.spinnerToggleEvent = config.events.spinnerToggle;  }]);  //#endregion
  //#region Configure Auth0  app.config(function(authProvider) {    authProvider.init({      domain: 'blabla.auth0.com',      clientID: 'blablabla'    });  });  //#endregion
})();