Skip to content
Loading
  • Varun Setia
    +1
    Things are getting bit messy, what part is working and what is not? As per me your on page refresh should initialise the value in localstorage, rest part was working correctly?
    +1
  • Varun Setia
    +1
    JSON.parse() should have been called before assignment. I missed that !! Please try!
    +1
  • Varun Setia
    +1
    Just use this.items.push(JSON.parse(localStorage.getItem('items'))) instead of items=localStorage.getItem('items')
    +1
  • Varun Setia
    +1
    Hi Maureen, is it resolved?
    +1