How to create global variable in Kraken JS

288 views Asked by At

I would like to be able to make a constant like

var BASE_URL = 'http://example.com';

and make it accessible in all of my kraken JS controllers. Where should I define this?

Thanks.

1

There are 1 answers

1
Peter Lyons On BEST ANSWER

put global.BASE_URL = 'http://example.com'; at the beginning of you application code.