-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Popover adds a new scope every time it opens #2907
Comments
Is it possible that the scopes don't get cleaned up only when Batarang is On Thu Oct 30 2014 at 8:23:23 AM Spencer [email protected] wrote:
|
How would I be able to check that? Also, I've tested it with the Angular Strap version of Popover and I don't see the multiple scopes. On Thu Oct 30 2014 at 11:29:31 AM redab [email protected] wrote:
|
Every time a popover displays, it adds a new scope to the mix. After a while, this causes things to slow down dramatically, especially when those popovers display a lot of data in an already large application. I've seen the behavior using Batarang.
When the popover is opened, a new child scope is created. When it is closed, the scope remains. When it is opened again, a new child scope is created which is identical to the first. When it is closed again, both scopes remain, etc. etc.
http://plnkr.co/edit/toUlHDz4hOlgJTCUv4EQ?p=preview
Transfer the code from Plunker to a local machine to see it in action (there are a lot of other scopes in Plunker and I don't see it happening there).
The text was updated successfully, but these errors were encountered: