Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Modal scope not destroyed #3308

Closed
PaddyMann opened this issue Feb 18, 2015 · 4 comments
Closed

Modal scope not destroyed #3308

PaddyMann opened this issue Feb 18, 2015 · 4 comments

Comments

@PaddyMann
Copy link

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: #1643

Adding the following to modalWindow directive will fix (though there may be a better solution):

        element.on('$destroy', function() {
          scope.$destroy();
        });
@johnparn
Copy link

I have the same issue using AngularJS 1.3.9 and ui-bootstrap 0.12.0.

@PaddyMann: exactly where did you place this?

@bimal1331
Copy link

Will it ever get fixed?

@chrisirhc
Copy link
Contributor

Please post a Plunker to demonstrate this is broken and explain clearly what you mean by this issue.

@bimal1331
Copy link

Apologies, my mistake. It turned out to be inheritance issue for me. The modal scope was getting destroyed. Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants