3 ms·
Yeah, I know this. You wouldn't be able to step through your code in browser dev tools otherwise. The DOM manipulation stuff is one of the features which sold
by adamauckland 14y ago
Yeah, I know this. You wouldn't be able to step through your code in browser dev tools otherwise.
The DOM manipulation stuff is one of the features which sold me on Angular. I love the idea that everything renders itself then responds to a single redraw event fired on the DOM so that reflow happens once rather than the hideous way many people use jQuery to do things like:
var div = $('div').appendTo('.home');
var ul = $('ul').appendTo(div);
$('li').appendTo(ul);
Well done, each time you're causing layout.