Page 1 of 1

How to gram variables from Local Storage&Model to compose a mailto:

Posted: Fri Jun 12, 2015 9:09 pm
by Carlos Castillo6909856

Hi

Im finishing to adequate your great tutorial

Building a MusicShop app using Model and Storage

to my specific needs

I just need to send an email with the cart content, I would appreciate if you just give me how to build the var with the variables from the Model and Local Storage for the subject.

I know how to build the structure from a mailto: just confused with the model Storage and arrays.

Best


How to gram variables from Local Storage&Model to compose a mailto:

Posted: Fri Jun 12, 2015 10:29 pm
by Alena Prykhodko

Hello,

Not sure I understand your question.
This is how you get and set Local Storage variable values:
pre
localStorage.getItem('name');
localStorage.setItem('name', 'value');/pre