diff --git a/libs/lz-string.js b/libs/lz-string.js index 2c4a11a..1194e25 100644 --- a/libs/lz-string.js +++ b/libs/lz-string.js @@ -498,4 +498,9 @@ if (typeof define === 'function' && define.amd) { define(function () { return LZString; }); } else if( typeof module !== 'undefined' && module != null ) { module.exports = LZString +} else if( typeof angular !== 'undefined' && angular != null ) { + angular.module('LZString', []) + .factory('LZString', function () { + return LZString; + }); }