K
K
kartio2015-03-12 19:32:17
Angular
kartio, 2015-03-12 19:32:17

How to check if an element still has an anchor in angularjs?

There is an application using angularjs, it uses a third-party directive that deals with sorting a list. This sorting uses jquery sortable. At some point in this directive, an error occurs in the javascript, an exception crashes, Angular redraws ng-repeat by the elements of the list, but it turns out that duplicate elements remain in the container that are already "decoupled" from the list, that is, by calling ng- repeat, angular does not take into account "old" elements. How does it track this binding?..
If you look at $('el').data(), then there is a scope, it contains all the information like watchers, etc., what can be checked and what does Angular itself check?..
I'll try to take a look at the source

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Dedukhin, 2015-03-12
@Demetros

I remember something that if the ngAnimate module is connected, then it can lead to duplicates.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question