We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2957dd1 commit 9e8fda2Copy full SHA for 9e8fda2
src/guide/essentials/computed.md
@@ -280,7 +280,7 @@ export default {
280
// When count is >=4, the last value that fulfilled our condition will be returned
281
// instead until count is less or equal to 3
282
alwaysSmall(previous) {
283
- if (this.count >= 3) {
+ if (this.count <= 3) {
284
return this.count;
285
}
286
@@ -303,12 +303,13 @@ const count = ref(2)
303
304
305
const alwaysSmall = computed((previous) => {
306
- if (count.value >= 3) {
+ if (count.value <= 3) {
307
return count.value;
308
309
310
return previous;
311
})
312
+</script>
313
```
314
</div>
315
0 commit comments