Dismiss angular modal on URL change - errors in console

痴心易碎 提交于 2019-12-04 20:08:37

Your plunker seems to be right.

There is $modal service bug here: the modal scope is still alive after you close a modal window. So modal scope continue to listen $routeChangeStart and I consider that double call of dismiss() cause an error.

This issue will be solved in next UI Bootstrap release.

I update and comment your code, hope this help - http://plnkr.co/edit/daf8dP?p=info

I have a comprehensive solution on dismissing Angular modal when route change / back button clicking here.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!