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

AngularJS creating additional scopes on opening modal dialog multiple times #443

Closed
kwehrle opened this issue May 16, 2013 · 2 comments
Closed

Comments

@kwehrle
Copy link

kwehrle commented May 16, 2013

I've a simple problem. I'm using a ng-include directive inside a modal.
It's because a want to dynamically change the src for the include (the example however is with fixed src attribute).

<div class="modal" modal="theModal" close="closeModal()">
<div ng-include src="'form1.html'">
</div>

Every time I open the modal, a new scope is created (I can see it with batarang).
After opening the modal a dozen times, I've many scopes and the application is getting slow.

Is this a bug?

More Information is here:
http://stackoverflow.com/questions/16528634/angularjs-creating-additional-scopes-on-opening-modal-dialog-multiple-times

http://plnkr.co/Mbo9OaKA8MFJptwmI3PN

@pkozlowski-opensource
Copy link
Member

Yes, this is a bug, working on substential $dialog / modal refactorings in scope of #441

@ShindePrasad
Copy link

Hi, I can not able to view solution for this. @pkozlowski-opensource could you please update the correct answer for topic?

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

No branches or pull requests

3 participants