We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm using Angular 1.3.20 which is now CommonJS compatible (since 1.3.14).
When I use browserify require('angular-cache') var angular is undefined in your module. This leads to error "angular.module is undefined"
Similar issue has been discussed here likeastore/ngDialog#168 but please note that discussion started BEFORE Angular 1.3.14 and CommonJS changes.
Changing angular-cache.js
if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("angular"));
to
if(typeof exports === 'object' && typeof module === 'object') module.exports = require("angular");
fixes the issue.
Working example is probably https://github.com/likeastore/ngDialog/blob/master/js/ngDialog.js
The text was updated successfully, but these errors were encountered:
Any ideas? Would be actually nice to use this library.
Otherwise I'm forced to fork and remove the UMD stuff
Sorry, something went wrong.
Fix module definitions for Angular 1.3 and browserify
eb1b273
Fixes jmdobry#204
@jukkasi can you create a pull-request with this fix?
Can we get this into angular-cache?!
+1
Fixed by b491ed83
jmdobry
No branches or pull requests
I'm using Angular 1.3.20 which is now CommonJS compatible (since 1.3.14).
When I use browserify require('angular-cache') var angular is undefined in your module. This leads to error "angular.module is undefined"
Similar issue has been discussed here likeastore/ngDialog#168 but please note that discussion started BEFORE Angular 1.3.14 and CommonJS changes.
Changing angular-cache.js
to
fixes the issue.
Working example is probably https://github.com/likeastore/ngDialog/blob/master/js/ngDialog.js
The text was updated successfully, but these errors were encountered: