goodeggs / angular-cached-resource

An AngularJS module to interact with RESTful resources, even when browser is offline
MIT License
216 stars 29 forks source link

How to use it without Browserify, simply with bower? #89

Closed felippenardi closed 8 years ago

felippenardi commented 8 years ago

I'm trying to add angular-cached-resource to a project with Gulp and without Browserify.

I'm having trouble because of this:

screen shot 2016-06-14 at 11 26 48 am

The angular-cached-resource is assuming there will be a module.exports object, which this project doesn't.

I tried to edit these lines to remove the if statement, but then it will fail because my project doen't use require.

My question is, is there a minified version I could just import using Bower and start using by simply injecting the dependency to my angular module?

felippenardi commented 8 years ago

@demands Would really appreciate your input in this, Max!

hazeledmands commented 8 years ago

Hi @felippenardi -- try the newest version (angular-cached-resource.js | angular-cached-resource.min.js).

I think your problem is solved with this commit. Let me know.

felippenardi commented 8 years ago

Thanks @demands !!!