Skip to content

Instantly share code, notes, and snippets.

@gaboelnuevo
Created February 11, 2019 22:03
Show Gist options
  • Save gaboelnuevo/ff100a6a2befb692d5a2b93031170b98 to your computer and use it in GitHub Desktop.
Save gaboelnuevo/ff100a6a2befb692d5a2b93031170b98 to your computer and use it in GitHub Desktop.
angular-module-info-patch.js
"use strict";
var _oldModuleFunction = angular && angular.module;
if (_oldModuleFunction) {
angular.module = function () {
var _module = _oldModuleFunction.apply(void 0, arguments);
if (_module && !_module.info) {
_module.info = function () {
return _module;
};
return _module;
}
return _module;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment