8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e6c7cf commit 87a371bCopy full SHA for 87a371b
src/restangular.js
@@ -1,10 +1,12 @@
1
+// https://github.com/umdjs/umd/blob/master/templates/returnExports.js
2
(function (root, factory) {
3
if (typeof define === 'function' && define.amd) {
4
define(['angular', 'lodash'], factory);
5
} else if (typeof module === 'object' && module.exports) {
6
module.exports = factory(require('angular'), require('lodash'));
7
} else {
- root.returnExports = factory(root._, root.angular);
8
+ // No global export, Restangular will register itself as Angular.js module
9
+ factory(root._, root.angular);
10
}
11
}(this, function (_, angular) {
12
0 commit comments