Currently I am verifying if angular is already aware of my module using the following code snippet:
try {
angular.module('myModule');
}
catch (err) {
angular.module('myModule', []);
}
Is there a more efficient way to accomplish this? It seems like angular lacks a "hasModule()" method..