Can I use a variable from a regular JavaScript file in an AngularJS constant? Here's what I've attempted so far.
JavaScript file:
"use strict";
var CONST_MAP = {
'key': 'value'
};
AngularJS file:
'use strict';
angular.module('foo').constant('bar', {
'test': CONST_MAP
});