Answer the question
In order to leave comments, you need to log in
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
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.
Everything is here: https://ru.vuejs.org/v2/guide/reactivity.html
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question