Understanding computed properties
You're already familiar with reactive data in Vue. In this lesson, we're going to talk about another reactive Vue feature called computed properties.
You'll see in this example app that we have two reactive data properties defined on lines 25 and 26 -
y, which are numbers.
In the app's template we are interpolating those values in lines 17 and 18. Since they're reactive values, if we were to change the value of
y the template would re-render to reflect that change.
Click to load comments...