Using a computed property
In the last lesson we learned about computed properties. What we're going to do now is refactor the app slightly so that products
is a computed property instead of reactive data property in order to implement our scroll loading feature.
Refactoring products
So let's add a computed
property to our app config, assign an object to that, and created our first computed property products
.
Click to load comments...