Does it work with Angular.js
vinodsobale opened this issue · comments
I have a scenario where after user fill out a form FBSDK call is made to check if the user is authenticated. If not, FB authenticates himself and gets redirected back to the form but by then the information is lost.
I used data-persist="garlic" on the form but ti didn't work. Am I missing something?
Tried to use with AngularJs 1.6.3, still doesn't work: no error or warning messages in browser's console. It just doesn't save the forms: checked both Local Storage and Session Storage - they don't contain any data related to the forms.
Hi,
Could you provide a jsfiddle/jsbin to show that and try to debug it?
Thanks
Thank you for a fast reply and creating a great tool! Sorry, I decided to choose another approach: now I save the data automatically on the server using AJAX, which allows me to preserve the data between different browsers and devices of the user. Besides, I found out that there's ngStorage - a solution with Garlic functionality created especially for AngularJS. May be it will be helpful for other AngularJS users. Probably I will come back to Garlic later, to provide more details about this issue. Thank you again and good luck!
Great, having worked with Backbone, Vue, React, Ember ... but never Angular, I did not know that they had an Angular Way for localStorage too (maybe that's why I never gave a try to Angular, too much Angular way )
Good to know for others looking for solutions with Garlic and Angular.
Best