opitzconsulting / jquery-mobile-angular-adapter

jquery mobile angular adapter
MIT License
517 stars 114 forks source link

$navigate from a dialog breaks navigation #88

Closed mlegenhausen closed 11 years ago

mlegenhausen commented 11 years ago

Fiddle: http://jsfiddle.net/E8h48/2/

Click on Next. In the dialog again Next. When you now try to reopen the dialog you get an exception and the dialog can not be reopened.

Tobias, I hope you don't give up ;)

tbosch commented 11 years ago

Hi, the exception is gone, but the reopening does not work. The reason is that I don't remove the &ui-state=dialog from the url when navigating from within a dialog, so this leads to an url of http://jsfiddle.net/E8h48/2/show/&ui-state=dialog#main1 in the end of the example.

Your test cases are great, keep them coming! Tobias

tbosch commented 11 years ago

Here is an updated jsfiddle: http://jsfiddle.net/E8h48/5/ Please note: The $navigate service is gone, see the Changelog.md for a migration guide.

Tobias