Improve dynamic module getter/setter
Closed this issue · 0 comments
antonsamper commented
export the module creator logic to it's own function:
var moduleName = 'iconButton';
try {
app = angular.module(moduleName);
} catch (e) {
app = angular.module(moduleName, []);
}