Using the local storage

OK, so lets the local browser storage in our component.

Edit the minicart.js to have a code like

https://gist.github.com/marjan7790/286d4e052b39200e9d646d352eb5c599

Re-deploy if you must and observe the Local Storage – it should have a new key there named cartExtra, just like on this picture

cartExtra-storage

Well, since you’ve come this far, congratulations, you are a very good developer, and I’m sure you do not need any further explanations about the code 🙂

Feel free to checkout the source code from tag 0.4.0

Thank you for reading.

Leave a comment