Does Angular 2 use Shadow DOM or a Virtual DOM?

后端 未结 2 1554
青春惊慌失措
青春惊慌失措 2021-02-01 01:52

What does Angular 2 use to update the DOM. Is it Shadow DOM or Virtual DOM ? Was there any such concept in Angular 1?

2条回答
  •  情书的邮戳
    2021-02-01 02:18

    React and Vue are using Virtual DOM and Angular use direct DOM rendering system.

    It's the same thing that Angular did with version 1.x, but it is optimized and there is a surprise for you :)

    It is much faster to work with JavaScript objects than with DOM, because nothing drown on screen

提交回复
热议问题