Skip to content

Glossary: Vue.js

toValue

Also written: toValue()

A Vue function that gives the value of a string, a ref or a getter: it returns a string as is, reads a ref's `.value`, or calls a getter. Composables use it to accept any of the three.

Where the book teaches it

Related terms

ComposablerefGetter