Skip to content

Instantly share code, notes, and snippets.

@ssskip
Created May 10, 2014 14:59
Show Gist options
  • Save ssskip/5cd2741e4b5c2f243e18 to your computer and use it in GitHub Desktop.
Save ssskip/5cd2741e4b5c2f243e18 to your computer and use it in GitHub Desktop.
(function (exports) {
'use strict';
var _module = exports.angular.module;
exports.angular.module = function () {
var module = _module.apply(this, arguments);
module.decorate = function (dest, fn) {
module.config(function ($provide) {
$provide.decorator(dest, fn);
});
return module;
};
return module;
};
}(this));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment