In team we use the v-text directive (instead of mustache) to pass computed strings. This allows us to omit the closing tag and improves the readability of the template.
Now we discuss what to do with the plain text. Should we place it:
- in the typical way
- or with the help of v-text, passing plain text
<span v-text="'plain text'"/>.
- or with the help of v-text, passing a variable with the string
The discussion is between option 1 or 3 and we rejected option 2.
My question is, is declaring plain text as a variable in
data() an antipattern? Maybe option 1 is more natural, though not consistent.