.

angular.modules

(function () {
    var orig = angular.module;
    angular.modules = [];
    angular.module = function () {
        var args = Array.prototype.slice.call(arguments);
        if (arguments.length > 1) {
            angular.modules.push(arguments[0]);
        }
        return orig.apply(null, args);
    }
})();

//usage:  angular.modules

What's your thoughts on this?

*

Protected by WP Anti Spam