You can access it like any other JavaScript object.
localStorage.foo = 'bar';
console.log(localStorage.foo);

On Wed, Jul 22, 2015 at 9:05 AM, Adarsh C <[email protected]> wrote:

> Hello,
>
> I am setting a value in localstorage in angularjs. How can i retrieve this
> value in normal javascript?
> Please help if anybody knows it.
>
> With Regards
> Adarsh C
>
> --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
R. Mark Volkmann
Object Computing, Inc.

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to