javascript – How to pass values ​​between Backbone Views on different pages?

Question:

I have a View with that shows a list of items and I have another View that I use to edit each item.

The problem is that each View is in a different HTML and when I try to edit can not pass values from the List View to the Edit View because it becomes postback and values are lost.

Does anyone know of any way to pass the values ​​from one View to another (between pages) without having to do a SPA ?

Answer:

Well so far the only option I found was to store in the SessionStorage or pass through URL the necessary values ​​to recover the data after the postback .

If anyone has a better option please comment.

Scroll to Top