I would go as far as to say you shouldn't do either of those things. It smells like bad design.
I answered the same question (or at least very much alike) a short while ago, and I think the answer applies here as well:
durandal : best way to pass data between ViewModels
Edit: I read over what your goal was. In that case I would approach it differently: never leave the page to begin with. Just create the confirmation 'page' inline in your current view, and set a flag to determine whether the form or the confirmation should be shown. This will save a lot of overhead and will be more responsive on the client side as well.
Edit 2: Fiddle you requested: http://jsfiddle.net/7zp5K/33/
Basically the trick is all in the submit
function on your viewmodel where I swap the observable showConfirm
. In your HTML I created 2 'views' (divs). Only one is shown based on the state of showConfirm
.
In the confirmation view I use a foreach
binding to show the selected items.