You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 8, 2021. It is now read-only.
querying objects in locker should query both session, and local unless specified. If I say locker.has('user') I would expect that to return true if there is an object called 'user' in either the local or session storage.
Here I allow the user to define which locker they use. Specifying driver on locker.put makes sense, but now later through out my application I either need to create a $rootScope variable to tell me which locker to use or I need to do this all over the place:
querying objects in locker should query both session, and local unless specified. If I say
locker.has('user')I would expect that to return true if there is an object called 'user' in either the local or session storage.Example use case:
Here I allow the user to define which locker they use. Specifying driver on
locker.putmakes sense, but now later through out my application I either need to create a $rootScope variable to tell me which locker to use or I need to do this all over the place:Ideally both
locker.hasandlocker.getwould query both lockers, unless I specifically saylocker.driver('local').hasorlocker.driver('local').get