Viewing localStorage in Internet Explorer - Unable to get name / value pairs
All,
I understand that the question of how to view localStorage in Internet Explorer has been answered multiple times. This is not my question.
View local storage content in IE
How to view Localstorage in IExplorer 10? [Duplicate]
I did:
- Open IE Developer Tools (F12)
- Go to Console
- enter in localStorage
This shows me that there is an object called localStorage that IE is aware of. However, I cannot get the name / value pairs as I can from Chrome.
This gives me a way to traverse the JavaScript object for localStorage, but I tried to expand all nodes and cannot find the name / value pairs (see screen capture).
I'm trying to see what specific Plunk is putting into localStorage, a demo for ngStorage.
This is what I see in Chrome:
How can I get to ngStorage-x
and ngStorage-y
from Internet Explorer?
Thanks in advance for your help!
source to share
Using localStorage
to view data in the console at IE
work.
What happens in the example you posted is that the code runs on a different domain.
localStorage
isolated in a specific domain, including subdomains.
Demo code works in run.plnkr.co
, and the page being viewedplnkr.co
Therefore ngStorage-x
, ngStorage-y
it is not in the dataset inside IE because you are browsing for plnkr.co
.
Chrome offers a tab resources
, like what you are viewing, for checking other pages, but the Chrome console itself won't have access to those pages localStorage
.
You can manually go to run.plnkr.co
IE and type localStorage
in the console and you will see the values ngStorage-x
and ngStorage-y
. (After you have executed the code in the demo).
source to share