Vue and localStorage?

cguttweb

Chloe

Posted on April 11, 2020

Vue and localStorage?

I built my first ever app with the Vue-cli the best part of a year ago and I've been going through my repos and there wre a couple of things I've wanted to add it but I'm not sure how.

The working example is here and git repo

I have it setup to add an new example to the list, but whnever you refresh the page it removes the newly added items. Is there a way to use localStorage (or something else?) to be to store these when you refresh the page? I did attempt to add localStorage using the example found in the docs, but it didn't work so I'm doing something wrong I'm not sure what.

Also is there a way to have a sort of console and actually run the code I've set out in the examples?

Any help or suggestions most appreciated.

💖 💪 🙅 🚩
cguttweb
Chloe

Posted on April 11, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related