I'm would like to use a var from a plain old javascript file in an AngularJS constant. Is that possible. Below is what I have tried.
Javascript file:
"use strict";
var CONST_MAP = {
'key': 'value'
};
AngularJS file:
'use strict';
angular.module('foo').constant('bar', {
'test': CONST_MAP
});
varinstead ofconst.