2015-02-06 16:05:38 -05:00

22 lines
391 B
JavaScript

'use strict';
function AdagiosConfig(data) {
this.data = data;
}
angular.module('adagios.config', [])
.provider('readConfig', function ReadConfigProvider() {
var data = {};
this.loadJSON = function (value) {
data = value;
};
this.$get = [function getConfigFactory() {
return new AdagiosConfig(data);
}];
});