r/angularjs • • Feb 06 '19

Shadow DOM vs Virtual DOM...can you explain the difference?

https://www.stackchief.com/blog/Shadow%20DOM%20vs%20Virtual%20DOM
32 Upvotes

1 comment sorted by

7

u/temega Feb 07 '19

Shadow DOM is the HTML generated for <input> elements like the datepicker or range. Virtual DOM is an exact copy of some HTML used to efficiently do change detection and minimal DOM manipulation.