bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Modal scope not destroyed

Open PaddyMann opened this issue 11 years ago • 4 comments

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();
        });

PaddyMann avatar Feb 18 '15 12:02 PaddyMann

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

@PaddyMann: exactly where did you place this?

johnparn avatar Feb 24 '15 14:02 johnparn

Will it ever get fixed?

bimal1331 avatar Apr 13 '15 08:04 bimal1331

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

chrisirhc avatar Apr 14 '15 08:04 chrisirhc

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

bimal1331 avatar Apr 14 '15 09:04 bimal1331