AngularJS service and directive wrapping Mozilla's localForage library for offline storage. Version 1.3.8 is the latest stable release (last published 2016, no updates since). It provides async promise-based storage using IndexedDB, WebSQL, or localStorage fallback. Key differentiators: specifically for AngularJS (1.x), integrates as an Angular module with $localForage service and directive for automatic model persistence. No longer actively maintained; consider modern alternatives like localForage with Angular (2+).
npm install angular-localforageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Complete example of storing and retrieving a user object using $localForage service.
Ensure <script src='localforage.js'></script> comes before <script src='angular-localForage.js'></script>.
Consider migrating to Angular (2+) with localForage or another modern storage solution.
Use getItem(key, true) to reject the promise when key is not found.
Wrap in $q.when or use $scope.$apply if integrating with non-Angular async code.
Load localforage.js before angular-localForage.js and ensure both are included.
Check that 'LocalForageModule' is listed as a dependency in your Angular module and the service is injected in the controller.
Ensure localforage script tag is present and placed before angular-localForage.