angularify / angular-semantic-ui

[WiP] AngularJS native directives for Semantic UI
http://angularify.github.io/angular-semantic-ui
MIT License
383 stars 89 forks source link

Hide and destroy modal when scope gets destroyed #52

Closed sijmenvos closed 9 years ago

sijmenvos commented 9 years ago

When the scope of a modal gets destroyed, the modal should also be removed from the dom. Otherwise it will stack them when you for example change views in ui-router or a different view router.

Simple but effective, and in my case, important fix.

jspdown commented 9 years ago

Feel free to contribute more like that. I merge it right now :+1: