Comments (10)
Solved this issue by implementing something similar to what @tmcgee123 posted, except we're using the $cookies service instead.
Thanks again for the lib and hard work! A+
from angular-locker.
Sweet! Glad someone else was able to use it!!
from angular-locker.
Cheers guys 👍
from angular-locker.
Where can I find what @tmcgee123 posted? We are having the same issue. I'm assuming this polyfill is what is being referenced? If so can we get this incorporated into angular locker in some way?
from angular-locker.
here is the gist https://gist.github.com/tmcgee123/c25325d70277b2ee3f3a
it's not really something that should go in the lib itself though
from angular-locker.
@tymondesigns understood 👍
from angular-locker.
Not sure if this works.
https://gist.github.com/tmcgee123/c25325d70277b2ee3f3a
LockerFallback is never called in Private Browsing.
from angular-locker.
@seven-cd That is sheerly a decorator for the service, so anyone could take it and simply include the module in their application and it will override the locker provider. If you are not familiar with decorators, here's the link: https://docs.angularjs.org/api/auto/service/$provide#decorator
All you have to do is include the code in your application then inject the module to where you are bootstrapping angular-locker currently.
from angular-locker.
Is the decoration approach still how this is done? I thought I read somewhere that this issue had been fixed and merged, but can't to find back to it. Also, it seems to not work with 2.0.4. Looking further into it now,
from angular-locker.
And, @tymondesigns, if I understand you correctly, fallback to cookie driver (or whatever) where other drivers are not supported (like Safari private mode) is not considered the scope of Locker, and should be handled in all applications needed to support missing localStorage support? IE. a feature, not a bug?
from angular-locker.
Related Issues (20)
- locker bind to scope doesnt work as expected HOT 9
- lockerProvider throws error when trying to setDefaultDriver HOT 1
- README out of date HOT 2
- Is it compatible with angular 1.4/material? HOT 1
- [Feature Request] Add where method to find value location HOT 3
- Force invalidation of one item
- Problem when trying to put or access multiple 'session' object. HOT 3
- LocalStorage gets reset on window.history.back()
- locker.put null values HOT 1
- Webpack HOT 8
- Documentation Request - 100% Angular Fallback HOT 1
- clean() does not work on 'session' driver and namespace with a dot HOT 1
- chrome map.js parsing error HOT 4
- How to bind when using "controller as" syntax? HOT 1
- Why the value in storage after I close the browser HOT 2
- How to save info in each tab in the same browser HOT 2
- Feature request: locker.getDriverName()
- Doc should encourage minification-friendly practice HOT 1
- Plans to add TTL or other expiration concept? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-locker.