v-text no longer outputs JSON.stringified objects
Version
3.0.1
Reproduction link
https://codepen.io/stowball/pen/MWeerzR
Steps to reproduce
- Have some data in an object
- Output it in the template using
v-text
What is expected?
To output a JSON.stringify()
version of the object, like in Vue 2, especially as the docs say that v-text
is the same as {{ }}
https://v3.vuejs.org/api/directives.html#v-text
What is actually happening?
It outputs a obj.toString()
, which renders the infamous [object Object]