Vue TutorialLesson 15Free preview
Vue Computed Properties
This lesson is part of Vue · All levels
Summary
Computed property is a derivative value calculated from other reactive data and cached by Vue until its dependence changes. This approach is more efficient than the method for values often used in templates because the results are not recalculated without data changes. Computed can also be made writable with pairs of get and set for specific cases.
Key points
- Computed property calculates the derivative values of reactive data.
- The computed results are cached and recalculated only when the dependencies change.
- Computed is more efficient than the method for frequently accessed derivative values.
- Computed writable using the get and set pairs.
- Computed just to generate value, not to run an action.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.