A
A
ar52017-08-29 18:17:30
Angular
ar5, 2017-08-29 18:17:30

How does rendering work in Vue.js and Angular?

Hello friends, can you tell me how rendering works in Vue.js?
React uses virtual dom vs real dom comparisons. That is, the this.setState() method is called
. What techniques are used in Angular and Vue for rendering?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
alvvi, 2017-08-29
@ar5

Vue also uses Virtual DOM.
Here is what Angular does

Angular uses a different strategy. We keep track of the old values ​​for every binding to the view, and so we can detect which pieces of the view changed and update them in the real DOM.
Virtual DOM diffs the view, angular diffs the model.
From a performance standpoint neither approach is strictly better than the other. There are certain scenarios in which either approach has a slight advantage.

E
Evgeny Kulakov, 2017-08-29
@kulakoff Vue.js

Everything is here: https://ru.vuejs.org/v2/guide/reactivity.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question