0

I am trying to load a view when in my project. I want to load a previous page which i had visited and now go back to previous page after clicking the back button of the browser. DO i have to write a method to load it using services of durandal.?

user3004443
  • 133
  • 1
  • 1
  • 16
  • Not sure if I understand correctly but you can just use `router.navigateBack()` to go to the previous page... – gerrod Apr 02 '14 at 22:22
  • @gerrod : the thing is i can see my viewmodel(name) changing in url, but the view is not getting loaded. The back button event which should get triggered is not getting triggered. Normally when back button is hit the event goes to viewlocator.js to locate the view. In my case after back button the control is not going any where. – user3004443 Apr 03 '14 at 04:52
  • The back button works fine in the html demos. I suggest you start there and figure out what you did wrong/differently. – Shaun Rowan Apr 03 '14 at 15:54
  • Do you have a `canDeactivate` or `deactivate` on the view that is unloading? If so, are they throwing an error? In fact, are there _any_ errors in the console window? Could you reproduce this in a jsFiddle? – gerrod Apr 04 '14 at 00:55

0 Answers0