I recently created an app at my workplace and encountered an error in the text area similar to what I have described in my title. After researching the issue online, I found some information but still struggle to fully grasp the concept.
My objective is to utilize literals as objects, although it seems that rules cannot be applied to literal objects. As a total beginner, I am not very proficient in English language. If you understand this, please feel free to reach out!
<template>
<v-card width="600" persistent>
<v-card-tex>
<v-row>
<v-col cols="8">
<v-textarea
filed
dense
v-model="testtext"
:rules="v=>!!v||'this is required!'"></v-textarea>
</v-col>
</v-row>
</v-card-tex>
</v-card>
</template>
<script lang="ts">
import {Vue} from 'nuxt-property-decorator'
export default class extends Vue{
testtext:string= `test`
}
</script>