I am looking to change the URL whenever fancybox is opened and the URL should get back to its original after closing the fancybox. Any help would be appreciated.
Asked
Active
Viewed 72 times
0
-
Can you ask more specific question? e.g., what causes you a problem? fancybox provides plenty of callbacks that you can use - https://fancyapps.com/fancybox/3/docs/#events – Janis Jun 20 '18 at 10:07
-
Thanks for your reply...! Janis, actually everything is going fine in my angular project except that I want to add something in my URL, whenever a Fancybox is open for gallery images. And when I close that Fancybox the URL should get back to its previous state. – Anuj Dixit Jun 20 '18 at 10:34
-
Are you using ui-router or ngRouter? And what does angular cli have to do with this? – Protozoid Jun 20 '18 at 10:35
-
@Protozoid ngRouter is using. – Anuj Dixit Jun 20 '18 at 10:54
-
Maybe this helps https://stackoverflow.com/questions/14974271/can-you-change-a-path-without-reloading-the-controller-in-angularjs – Protozoid Jun 20 '18 at 12:04