T
T
Testtest1322015-01-15 23:14:21
css
Testtest132, 2015-01-15 23:14:21

Does AngularJS redraw the DOM?

When angular applies filters - does it re-render the DOM or swap already existing elements?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-01-15
@Testtest132

what? filters are twitched on every $digest cycle. If the filter changes its value, then the DOM changes. The DOM changes - regardless of how it changes, the page or part of it is redrawn.
Or clarify your question. I suspect that you are interested in cases of a combination of ngRepeat and filters for collections. If instead of "redrawing" you mean creating nodes, then ngRepeat tries to use existing nodes. Specify.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question