I'd like to declare some enums that should be globally accessed from anywhere in my application, eg:
enum AIState { Asleep, Idling, Chasing, Fleeing, HavingLunch };
Question: where and how do I have to declare those enums withint an angularjs app?
main.js:
var myApp = angular.module('myApp', []);
myApp.config(...);
I later want to access them using AIState.Asleep, so I could pass them as a parameter and delegate my logic accordingly.
javapoint of view.