Successfully implemented two common modules that work with NodeJS using "require/module.exports" and AngularJS using "angular.module".

This work was necessary so both NodeJS and AngularJS domain models could inherit from the same abstraction.

Some workarounds had to be implemented including the repeated code below for all common modules...

if (!isAngularJS) {
    var isAngularJS = false;
}

... And the global variable is AngularJS set to true in the main angular module.

Right now, the inheritance is working only for NodeJS MainEvent domain model. Next steps are implement inheritance for AngularJS MainEvent domain model and the inheritance for both Lecturer domain module layers.