javascript - How to preserve values between pages using knckout? -


i building web app using asp .net mvc , knockout user can add/remove items shopping cart. there 2 pages, homepage shows special offers, , second shows offers model behind same. in each page can bind values page controls if user adds item cart other parts automatically updated. problem lose data when change page. there anyway in knockout can keep these changes between pages. best bet far has been store data on server , retrieve server again when go new page. hope can :)

i chose take @matt.kaaj approach working now. quote here:

it best practice store added item in database whenever add item cat .you can use browser's cookies or local storage not can rely on. – matt.kaaj


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -