antonsamper/gulp-boilerplate-with-angular

Improve dynamic module getter/setter

Closed this issue · 0 comments

export the module creator logic to it's own function:

var moduleName = 'iconButton';

try {
  app = angular.module(moduleName);
} catch (e) {
  app = angular.module(moduleName, []);
}