Is $localStorage.foo = foo (ngStorage) & localStorage['foo'] = foo the same?

101 Views Asked by At
foo = {test: ing}

Using ngStorage in an app and I am trying to update the value of

$localStorage.foo 

with

localStorage['foo'] = bar

from outside of the application (in another file w/o angular, or through chrome console)

I am storing the obj, and when I try to console log it, it's returning [object Object].. I was wondering if it is possible to set the ngStorage value, from a non angular application/ chrome console with bracket notation? Sorry if it's unclear, I'm really confused myself.

0

There are 0 best solutions below