Hello all… I’m running through the tutorial and have renamed some of the stuff from the tutorial to my liking, but believe I am still doing everything correctly… except window.localStorage[‘lists’] on line 31 seems to be working. It doesn’t create the ‘lists’ localStorage item, and it goes on undefined, breaking the app.
The bug is currently live on my Github repo: https://github.com/awitherow/ionic-todo
The file(s) in question are here:
https://github.com/awitherow/ionic-todo/blob/master/www/index.html
https://github.com/awitherow/ionic-todo/blob/master/www/js/app.js
How do I properly hook up the window.localStorage[‘lists’]? Am I doing something wrong or have I simply written something incorrectly?
Thanks for the help