Skip to content

Commit 4b0f9c9

Browse files
ivangermanovIvan Germanov
and
Ivan Germanov
authored
Fix broken 'ref-unwrapping-in-templates' link to (#1626)
'deep-reactivity' Co-authored-by: Ivan Germanov <[email protected]>
1 parent 81bf41c commit 4b0f9c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/composition-api-setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default {
3838
</template>
3939
```
4040

41-
Note that [refs](/api/reactivity-core.html#ref) returned from `setup` are [automatically shallow unwrapped](/guide/essentials/reactivity-fundamentals.html#ref-unwrapping-in-templates) when accessed in the template so you do not need to use `.value` when accessing them. They are also unwrapped in the same way when accessed on `this`.
41+
Note that [refs](/api/reactivity-core.html#ref) returned from `setup` are [automatically shallow unwrapped](/guide/essentials/reactivity-fundamentals.html#deep-reactivity) when accessed in the template so you do not need to use `.value` when accessing them. They are also unwrapped in the same way when accessed on `this`.
4242

4343
:::tip
4444
`setup()` itself does not have access to the component instance - `this` will have a value of `null` inside `setup()`. You can access Composition-API-exposed values from Options API, but not the other way around.

0 commit comments

Comments
 (0)