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 8cf1011 commit 5beadb7Copy full SHA for 5beadb7
src/ng-xslt.js
@@ -1,4 +1,14 @@
1
-(function () {
+(function (factory) {
2
+ if (typeof define === 'function' && define.amd) {
3
+ return define(['angular'], function (angular) {
4
+ return factory(angular);
5
+ });
6
+ } else if (typeof exports === 'object') {
7
+ return module.exports = factory(require('angular')).name;
8
+ } else {
9
10
+ }
11
+})(function (angular) {
12
/**
13
* Returns whether the browser supports XSLT.
14
*
@@ -88,10 +98,10 @@
88
98
return output || '(empty)';
89
99
}
90
100
91
- angular.module('ngXslt', [])
101
+ return angular.module('ngXslt', [])
92
102
.filter('xslt', [
93
103
'$window', '$document',
94
104
function ($window, $document) {
95
105
return transformXml.bind(this, $window, $document[0]);
96
106
}]);
97
-})();
107
+});
0 commit comments