luisperezphd/ngModule — pull request #2 by revington (2014-09-08 09:27:47+00:00)
Title: prevent elements are bootstrapped more than once

An element like

will generate an error like Uncaught Error: [ng:btstrpd] App Already Bootstrapped with this Element '<div ng-module="UserNotfications" ng-controller="UserNotificationsCtrl" class="ng-scope">

Also:
1. Can you explain your code convention? I tried to format the code in the same way you do, but it is not clear to me what convention you use.
2. I do not understand this part
```

className = ' ' + element.className + ' ';
match = NG_MODULE_CLASS_REGEXP.exec(className);
if (match) {
moduleElements.push(element);
modules.push((match[2] || '').replace(/\s+/g, ','));

} else {
```
Is the class important? I'm a newbie in angular, but as far as I know the class is not used to glue the controllers nor the modules. Should I keep it or remove it?