-1

I am trying to implement Pinterest style listing page, where on click of pins the details popup opens up and the url changes to something like http://pinterest.com/pin/123456. But the page is intact behind. When the popup is closed, the page behind is still there.

I have checked the similar feature of history api to change url of the browser without refreshing the page using "pushState" feature.

I want to implement the same in Angular but as soon as the browser's url is changed via pushState, the background page is reloaded due to the default "state change" event.

Any ideas are appreciated?

Kunal Dethe
  • 1,254
  • 1
  • 18
  • 38

1 Answers1

0

Make the modal state child of the main state,

In this case the main page will remain intact and the modal being the child of that state will trigger with new URL without actually refreshing the background.

Rahul Arora
  • 4,503
  • 1
  • 16
  • 24