requirejs([
'angular',
'app',
'css!css-app/override'
], function (ng) {
'use strict';
requirejs([
//ещё модули
], function () {
ng.module('outerConfig', [])
.factory('outerConfig', function(){
return ng.copy(outerConfig);
});
ng.bootstrap(container, ['ids']);
});
});
define([
//Снова модули
], function(angular){
var app = angular.module('ids', ['outerConfig', 'ngSanitize', 'ngAnimate', 'ngTouchstart', 'ids.datetimepicker',
'ids.timeshift', 'ids.colorpicker', 'ids.svg', 'ids.spinner', 'ids.slider', 'ids.adjust', 'ids.params.service',
'ids.modal.service', 'ids.modal2.service', 'ids.resources.service', 'ids.dict.service']);
app.config([function(){
}]);
app.controller('HeaderWrapperCtrl', ['$scope', 'outerConfig', function ($scope, outerConfig) {
$scope.controller = {};
$scope.headerUrl = outerConfig.baseUrl + 'app/header/tpl.html';
}]);
return app;
});