-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
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
Angular module #46
Comments
That looks like a synchronous API... I know EmberJS has support for promises in it's data storage drivers, what about here? |
Do you mean if angularLocalStorage has it? Cannot find anything about that in the docs, so guess no. Would of course be nice to have to give user feedback.... |
I'm writing an angularJS service based on localForage, I'll let you know once it's out ! |
@ocombe That sounds great! If you'd be willing to submit it as a pull request here that'd be amazing; I'm writing an EmberJS one in my spare time and would like to include the drivers for frameworks in the |
@ocombe, Excited to see that angular service. |
It's done, I'm testing it at the moment on my project at work. |
And I should take a look at https://github.com/agrublev/angularLocalStorage to add this bind feature, it seems very nice ! |
Here's how I solved it: |
My module is available here : https://github.com/ocombe/angular-localForage |
Have you guys tried my angular module ? Do you think that it's stable/good enough to be merged with this repository ? |
I'm not an Angular user though by looking at your source code I think you should try to use UMD. |
Angular has it's own module system and is not compatible with UMD |
I had no clue. Sorry about that :) |
no problem :) |
I'm not a huge angular user, so I feel like a bad person to judge it. Maybe I can check with some folks and if not evaluate it myself? But I am not opposed to seeing more adapters in here. |
I think @ocombe's repo is looking great and I personally believe it works as a great resource for those of us who like to combine localforage in angularjs code. |
We have Backbone support, and I'm happy to include adapter support right from our repo. It's not added to the library size, and if there's community support for adapters they can stay here. |
Great stuff. I agree that adapters probably don't belong in core. With that On Mar 14, 2014, at 5:52 PM, Peter Bengtsson notifications@github.com I think @ocombe https://github.com/ocombe's repo is looking great and I Reply to this email directly or view it on |
Why would you do this over managing the dependency via bower? Or am I misunderstanding? |
I was specifically referring to angular+localforage as an app skeleton. On Mar 14, 2014, at 7:34 PM, Austin Pray notifications@github.com wrote: I'd love to see this rolled into a yeoman generator Why would you do this over managing the dependency via bower? Or am I Reply to this email directly or view it on |
I listed localforage as a bower dependency but we would need release numbers to make it safe. |
Anyway, I have nothing against keeping it as a separate repository, but we should at least list it in the doc for people who might be looking for it :) |
I added a version 0.1.0 tag earlier today, and will be mindful of API breakage in the future. In terms of yeoman generators, that's outside the scope of this discussion. I do want angular adapters, but @potch and I were even discussing if that requires a separate repo to separate them into different bower components. But the point is that I'll look at the module and see if it can be blessed as out driver. Matthew Riley MacPherson (Sent from mobile)
|
Regarding linking to it were it a separate repo: absolutely! Matthew Riley MacPherson (Sent from mobile)
|
Well this ressembles my suggestion of having Backbone adapter on a different repo as well. Lets be coherent and whatever it's decided lets do it for all the adapters. |
@tofumatt @magalhas @ocombe I agree that a separate repo for adapters seems reasonable. If I'm using this for a mobile app, I really want to keep it as small as possible. Also, I don't want to have to clean up the repo after using bower to install, just to get back some of that space used by other adapters that I'm not interested in. Seems reasonable to have a section in readme.md where adapter creators can list their adaptors. Perhaps something like how Dokku documents their plugins: https://github.com/progrium/dokku/wiki/Plugins |
+1 for separating out adapters. Would be easy to manage everything with bower. |
I use angularLocalStorage because it makes synching scope data to the LocalStorage a oneliner:
Would be awesome to have this for LocalForage, too.
The text was updated successfully, but these errors were encountered: