Two methods of declaring modules in Angular

Recently I came upon this interesting code in an Angular project where static methods were used to return modules. I thought that soon…