I\'m trying to define constants with other constants, but it seems that it can\'t be done, because the initial constant isn\'t ready when the required constant depending req
I do that this way:
var constants = angular.module('constants', []); constants.factory("Independent", [function() { return { C1: 42 } }]); constants.factory('Constants', ["Independent", function(I) { return { ANSWER_TO_LIFE: I.C1 } }]);