I am trying to expand this handy, but basic feedback widget: http://experiments.hertzen.com/jsfeedback/
That lives in the window namespace and POSTs to a blob server. I would like to be able to look into the router history of my Durandal app and send a snapshot back with my regular feedack object.
Can anyone advise on how this could be done?
note: since the Durandal 2.0 router is similar to Backbone.js, suggestions from Backbone devs might also be helpful.
I'm thinking of something like this:
durandalRouter.on('router:navigation:composition-complete')
.then((instance: string, instruction: DurandalRouteInstruction, router: DurandalRouter) => {
// todo: track history...
});