Angular-UI-Router modal like pinterest

Viewed 1866

I'm making an app with a gallery that looks a lot like http://pinterest.com. In Pinterest, when you click a pin, it shows the pin page over the top of the gallery you were viewing. The URL changes to the pin url, and does not contain any information about the gallery behind the details. You can click the "X" or on the background to get back to the gallery where you were browsing without reloading.

How can I duplicate this with UI-Router?

Needs:

  • display the same details modal over several different galleries
  • switch to the same details url in all cases
  • if the details url is entered cold (from a bookmark or link), just display an empty gray background behind and disable closing

Thanks!

1 Answers
Related