Subscribe on changes!

v-text no longer outputs JSON.stringified objects

avatar
Oct 19th 2020

Version

3.0.1

Reproduction link

https://codepen.io/stowball/pen/MWeerzR

Steps to reproduce

  1. Have some data in an object
  2. 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]