As the title puts, I really don't know what @@DEBUG
or some other @@stringName
mean in JavaScript I mean.
Anybody got an idea there?
Many thanks
I've saw it used via string literal, or a variable, as follows:
// the 1st scene
angular.module('myApp', []).value('appConst', {'dbServer' : '@@DBSERVER'});
// the 2nd scene
if (@@DEBUG) {
window.root = $rootScope;
}
// some other logic
Thx, all!
Now that, I've found out where does this double '@' come from, it's from my grunt, build system, as follows:
// In my grunt's replace task
replace : {
server: {
replacements: [{
from: /@@DBSERVER/g,
to: yeomanConfig.devSettings.DEV_DBSERVER
}, {
from: /@@DEBUG/g,
to: 'true'
}]
}
}
Thx alot, all of the participants.