Modal scope not destroyed
On closing and reopening a modal, the original scope persists (angular 1.3.13 ; angular-ui-bootstrap v 0.12.0)
Seems to be the same issue as this closed one: https://github.com/angular-ui/bootstrap/issues/1643
Adding the following to modalWindow directive will fix (though there may be a better solution):
element.on('$destroy', function() {
scope.$destroy();
});
I have the same issue using AngularJS 1.3.9 and ui-bootstrap 0.12.0.
@PaddyMann: exactly where did you place this?
Will it ever get fixed?
Please post a Plunker to demonstrate this is broken and explain clearly what you mean by this issue.
Apologies, my mistake. It turned out to be inheritance issue for me. The modal scope was getting destroyed. Thanks.