174
rated 0 times
[
178]
[
4]
/ answers: 1 / hits: 8711
/ 4 Years ago, thu, february 6, 2020, 12:00:00
How can i change config.apiKey value based on the angular environments like Development & Production.
For Production config.appKey = 'AB-AAB-AAB-MPR';
For Development config.appKey = 'AC-DDR-SST-DKR';
Please find the code for reference.
`<script charset='UTF-8'>
window['adrum-start-time'] = new Date().getTime();
(function(config){
config.appKey = 'AC-DDR-SST-DKR';
})(window['adrum-config'] || (window['adrum-config'] = {}));
</script>
`
Thanks
More From » angular