(function () {
'use strict';
var core = angular.module('app.core');
core.config(toastrConfig);
toastrConfig.$inject = ['toastr'];
/* @ngInject */
function toastrConfig(toastr) {
toastr.options.timeOut = 4000;
toastr.options.positionClass = 'toast-bottom-right';
}
var config = {
appErrorPrefix: '[slotwo Error] ',
appTitle: 'slotwo'
};
core.value('config', config);
core.config(configure);
configure.$inject = ['$logProvider', 'routerHelperProvider', 'exceptionHandlerProvider'];
/* @ngInject */
function configure($logProvider, routerHelperProvider, exceptionHandlerProvider) {
Eif ($logProvider.debugEnabled) {
$logProvider.debugEnabled(true);
}
exceptionHandlerProvider.configure(config.appErrorPrefix);
routerHelperProvider.configure({docTitle: config.appTitle + ': '});
}
})();
|